出现问题一

>>> name = input()

在输入时:Michael 出错,如下Traceback (most recent call last): File "<pyshell#54>", line 1, in <module> name = input() File "<string>", line 1, in <module>NameError: name 'Michael' is not defined

输入改成'Michael'(加上引号),就不会出错啦

出现问题二:运行方式

python第一课

相关文章: