請問我這個問題到底出現在哪里呀,運行總是提示錯誤,格式我都是按照要求來的
Microsoft Windows [版本 10.0.15063]
(c) 2017 Microsoft Corporation。保留所有權利。
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
>>> print 'hello,world.'
? File "<stdin>", line 1
??? print 'hello,world.'
?????????????????????? ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('hello,world.')?
>>> print'hello,world.'
? File "<stdin>", line 1
??? print'hello,world.'
????????????????????? ^
SyntaxError: invalid syntax
>>>
2018-07-11
視頻里面的print的語法有錯誤吧,應該是print('hello,world')
2018-07-17
2018-07-12
3.7版本需要這么輸入?
print('hello,world')
系統就打印出來了
2018-07-12
版本不一樣會不會也出不來?? 視頻是2.7.8 這個是3.7.0
2018-07-11
首先你要進入HelloWorld.py文件的位置,然后在輸入 python HelloWorld.py
2018-07-11
print 'hello,world.'這樣輸入應該沒有問題吧?