![]() |
#2
豆豆的滴2020-07-20 22:31
|
这是我第一次尝试输入的代码:
>>> age = 19
>>> if age >= 18:
... print("You are old enough to vote!")
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: 'str' object is not callable
第二次修改后的结果:
>>> age = 19
>>> if age >= 18:
... print=("You are old enough to vote!")
...
>>>
没有显示出打印结果,然后我把等号=和括号()都去掉,还是没有显示打印结果,求指教
![](images/smilies/emot/em06.gif)
第三次修改的结果:
>>> age = 19
>>> if age >= 18:
... print = "You are old enough to vote!"
...
>>>