将字符串转换为raw以后,转义字符串就无效了吗?
print(r'''"To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.''')
换行的那个转义字符\n,写了之后也不换行,而是直接输出\n了
print(r'''"To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.''')
换行的那个转义字符\n,写了之后也不换行,而是直接输出\n了
2021-06-24
举报