执行语句Print Format(123.5,”$000,#.##”)的输出结果是_______。
第一空: $0,123.5
举一反三
- 语句Print Format$(32548.5,“###,###.###”)的输出结果是()
- 语句print("输出结果是{:8s}".format("this"))的输出是:输出结果是 :□□□□this。 □表示空格。
- 语句Print Format(“Hello World”,“>”)的输出结果是()
- 变量x=123.45时,不能输出结果“123.5”的是( )。 A: print( {:.1f} .format(x)) B: print(round(x,1)) C: print( {0:.1f} .format(x)) D: print(f'{x:.f}')
- 以下语句的输出结果是()。Print Format$(1234.5, "00,000.00")
内容
- 0
【填空题】下列Python语句的输出结果是____。 print("1".rjust(20," ")) print(format("121",">20")) print(format("12321",">20"))
- 1
执行语句 ”Print Format(5459.478, “# #, # #0.00”)”,正确的输出结果是______。 A: 5459.48 B: 5,459.48 C: 5,459.478 D: 5,459.47
- 2
执行语句 Print Format$(2345.678, “00,000.##”) ,正确的输出是()。
- 3
中国大学MOOC: 以下语句的输出结果是( )。Print Format$(1234.5, "00,000.00")
- 4
语句print("{0:=^20}".format("Python"))输出结果是: ==============Python|=======Python=======|Python|Python==============