課程
/后端開發
/Python
/Python3 入門教程(新版)
print('hello',?'python')?#==>?('hello',?'python') print('hello')?#==>?hello
2020-09-06
源自:Python3 入門教程(新版) 3-4
正在回答
我覺得這是imooc的IDE本身的問題,我在命令行和python的編輯器中嘗試了之后,print('hello',?'python') 打印出來的就是hello,python
print
(
'hello'
,?
'python'
) 打印出來的就是
hello,python
慕蓋茨7031404 提問者
讓我來告訴你為啥,因為imooc的測試python環境是2.0系列版本的,而他的代碼是按照python3.0系列版本的特性來寫的。
print('hello'+','+'python') #==>hello,python
舉報
python3入門教程,讓你快速入門并能編寫簡單的Python程序
3 回答為什么打印出的是('Hello,','python')不應該是Hello,python嗎
3 回答為什么出來的都是hello python?
5 回答既然都是真為啥a最后輸出的不是('hello,', 'world')或('hello,', 'python,world')?而是('hello,', 'python')?沒懂
1 回答b='',為什么輸出不是Hello World,而是Hello?
2 回答b=" " print("hello,",b or "world") 這一節為什么我在我電腦python命令行輸出的結果是hello, ?。? 不應該是hello,world嗎 ?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-09-06
我覺得這是imooc的IDE本身的問題,我在命令行和python的編輯器中嘗試了之后,
print
(
'hello'
,?
'python'
) 打印出來的就是
hello,python
2020-11-15
讓我來告訴你為啥,因為imooc的測試python環境是2.0系列版本的,而他的代碼是按照python3.0系列版本的特性來寫的。
2020-09-06
print('hello'+','+'python') #==>hello,python