课程
/后端开发
/Python
/初识Python
r'''...'''头尾的三个单引号可换成双引号吗?
2014-11-06
源自:初识Python 3-6
正在回答
print r'"to be,or not to be":that is the question.Whether it\'s nobler in the mind to suffer.'
两句话,但是不把它行,那怎么写才能让后面的it's以及后面正常显示。
因为他显示的是"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.""""To be, or not to be": that is the question.Whether it's nobler in the mind to suffer.
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序