Discuss / Python / (菜鸟贴)关于python语法的问题

(菜鸟贴)关于python语法的问题

條碼君ing

#1 Created at ... [Delete] [Delete and Lock User]

hello.py

print 'hello,world'

运行后:

File "hello.py", line 3 print 'hello,world' ^ SyntaxError: invalid syntax

3中print后需要括号,而2的print后不需要括号


  • 1

Reply