为了账号安全,请及时绑定邮箱和手机立即绑定

关于r'''...'''的使用

为什么print  r''''\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'''可以

但是print  r''''\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.''''这样不可以?

正在回答

2 回答

应该是把\后面的 ' 和  it\ 后面的 '  视作 一个组合 。 如果后面是4个 ' 就多出来一个


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

r后面是3个 '''

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

举报

0/150
提交
取消
初识Python
  • 参与学习       758278    人
  • 解答问题       8967    个

学python入门视频教程,让你快速入门并能编写简单的Python程序

进入课程

关于r'''...'''的使用

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号