C:\Users\wangshuai>python Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print'hello,world.' ? File "<stdin>", line 1 ??? print'hello,world.' ????????????????????? ^ SyntaxError: invalid syntax >>>
2018-06-17
你的文件名多了個 .py
2018-07-11
C:\Users\wangshuai>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print'hello,world.'
? File "<stdin>", line 1
??? print'hello,world.'
????????????????????? ^
SyntaxError: invalid syntax
>>>
請問這個輸入有問題嗎,提示總是錯誤。用的是英語輸入法
2018-06-17
hello。py.py是你的文件名吧? ?你應該運行hello。py.py? ? 或者將文件名改成hello