我的為什么是這樣的
C:\Users\AFD\Desktop>python hello.py
? File "hello.py", line 1
? ? print ‘hello,world’
? ? ? ? ? ? ? ?^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(‘hello,world’)?
C:\Users\AFD\Desktop>python hello.py
? File "hello.py", line 1
? ? print ‘hello,world’
? ? ? ? ? ? ? ?^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(‘hello,world’)?
2019-11-21
舉報
2019-11-21
輸出格式不對,缺少括號,應為print(‘hello,world’)
2019-11-21
看下你的python版本是什么,寫的代碼和系統中的python不是一個版本的。
python2系列可以支持print ‘hello,world’,python3系列的需要使用print("hello world")