print用()為什么運行不了
print (r'''"To be,or not to be": that is the question. Whether it's nobler in the mind to suffer.''')為什么有英文的括號后就運行不了
print (r'''"To be,or not to be": that is the question. Whether it's nobler in the mind to suffer.''')為什么有英文的括號后就運行不了
2019-03-17
舉報
2020-03-27
如果用括號,那么意為打印括號內事件的布爾值。例如print (100=99)的輸出結果是false
2019-03-27
print r'''"To be, or not to be": that is the question.
? ? Whether it's nobler in the mind to suffer.'''
2019-03-17
語言版本問題,這節課用的python 2.6, 加括號的是python 3以后的版本。本地裝python 3.6, print()可運行,不加括號會報錯