print('hello,','python');
print('hello,','python');我這樣輸入代碼,輸入結果是('hello,','python'),為啥不是直接輸入hello,python 這個值的呢?在我本地的IDE執行是輸出hello,python 這個值的,本地IDE的版本是Python 3.4.2
print('hello,','python');我這樣輸入代碼,輸入結果是('hello,','python'),為啥不是直接輸入hello,python 這個值的呢?在我本地的IDE執行是輸出hello,python 這個值的,本地IDE的版本是Python 3.4.2
2015-03-05
舉報
2015-12-16
python 里?() 可以表示元組 tripe,在2.7優先解析成tripe類型了,(可以 type('hello,','python')測試),本地3.4優先認為是函數,python2.7和3.4版本有區別的
2015-12-15
你有見過在print()里面加入兩個‘ ?’的嗎?沒有