分别在首尾多加一个',为什么一个能输出一个不能?
print(r'''\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'''')
print(''''\"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.'''')
print(''''\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.''')
2020-09-25
举报