题目内容

Python中变量名可以用数字开头。

A. 对
B. 错

查看答案
更多问题

Python没有命名常量。

A. 对
B. 错

print('{0} {1} {0}'.format('hello','world'))输出正确的是?

A. hello world
B. hello world hello
C. hello
D. world

为变量price输入一个浮点型数据的正确代码是()

A. price=input()
B. price=float(input())
C. price=float()

format()格式化输出的好处是不管输出数据是什么类型,都可以将数据组合到字符串指定位置中输出。

A. 对
B. 错

答案查题题库