中国大学MOOC: 以下语句的输出结果是( )。Print Format$(1234.5, "00,000.00")
01,234.50
举一反三
内容
- 0
执行语句Print Format(123.5,”$000,#.##”)的输出结果是_______。
- 1
【填空题】下列Python语句的输出结果是____。 print("1".rjust(20," ")) print(format("121",">20")) print(format("12321",">20"))
- 2
语句print("{0:=^20}".format("Python"))输出结果是: ==============Python|=======Python=======|Python|Python==============
- 3
中国大学MOOC: print()函数和format()方法不可以将结果以特定格式输出。
- 4
设str = '吵=口+少',输出结果为“吵口少”的print语句是:() A: print('{}'.format(str[::2])) B: print('{}'.format(str[::-1])) C: print('{}'.format(str[::])) D: print('{}'.format(str))