麻煩看一下是否對錯,謝謝!
代碼提交完后,顯示的結(jié)果如下: ('hello,',?'python') ('hello,',?'world')
為啥不是直接顯示為:
hello python
hello world
而是有這些括號和‘、,、等字符 ?
代碼提交完后,顯示的結(jié)果如下: ('hello,',?'python') ('hello,',?'world')
為啥不是直接顯示為:
hello python
hello world
而是有這些括號和‘、,、等字符 ?
2022-02-14
舉報
2022-02-15
因?yàn)槟愕亩禾?,)包含在單引號里面,作為字符串的一部分,所以就會把單引號一起輸出