为何不能执行呢

为何不能执行呢

http://www.czug.org/docs/python/ ... c_e4_bd_bf_e7_94_a8


我照葫芦画瓢,也在PYTHON输入

>>> s = supercalifragilisticexpialidocious
>>> len(s)34
可是只输入第一句之后,一按回车就显示:
Traceback (most recent  call last):
File "<stdin>",line 1,in?
NameError:name 'supercalifragilisticexpialidocious' is not defined.
这样不对,python里的字符串要用单引号或双引号括起来

[Copy to clipboard] [ - ]
CODE:
>>> s = 'supercalifragilisticexpialidocious'
>>> len(s)

建议你看看本版置顶的Python入门书 "简明 Python 教程"
谢谢.终于搞懂了.