亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

print用()為什么運行不了

print (r'''"To be,or not to be": that is the question. Whether it's nobler in the mind to suffer.''')為什么有英文的括號后就運行不了

正在回答

3 回答

如果用括號,那么意為打印括號內事件的布爾值。例如print (100=99)的輸出結果是false

0 回復 有任何疑惑可以回復我~

print r'''"To be, or not to be": that is the question.

? ? Whether it's nobler in the mind to suffer.'''


0 回復 有任何疑惑可以回復我~

語言版本問題,這節課用的python 2.6, 加括號的是python 3以后的版本。本地裝python 3.6, print()可運行,不加括號會報錯

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
初識Python
  • 參與學習       758393    人
  • 解答問題       8967    個

學python入門視頻教程,讓你快速入門并能編寫簡單的Python程序

進入課程

print用()為什么運行不了

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號