首页 > 试题广场 >

执行下列语句后的显示结果是什么()

[单选题]
b = 2*a/ 4
a = "one"
print(a,b)
执行下列语句后的显示结果是什么()
  • 10
  • one0.5
  • error
  • one 0
>>> b=2*a/4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined
>>> a="one"
>>> print(a,b)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'b' is not defined
发表于 2018-12-11 22:37:13 回复(0)