為什么print('hello', 'python')打印出來的不是 hello, python,而是('hello', 'python'),多了括號(hào)和引號(hào)?
print('hello',?'python')?#==>?('hello',?'python') print('hello')?#==>?hello
print('hello',?'python')?#==>?('hello',?'python') print('hello')?#==>?hello
2020-09-06
舉報(bào)
2020-09-06
我覺得這是imooc的IDE本身的問題,我在命令行和python的編輯器中嘗試了之后,
print
(
'hello'
,?
'python'
) 打印出來的就是
hello,python
2020-11-15
讓我來告訴你為啥,因?yàn)閕mooc的測(cè)試python環(huán)境是2.0系列版本的,而他的代碼是按照python3.0系列版本的特性來寫的。
2020-09-06
print('hello'+','+'python') #==>hello,python