小脚丫gogo
2020-09-16 16:50
>>> print(r'''"To be,or not to be":that is a question.
... whether it's nonghgdjd df.''')
"To be,or not to be":that is a question.
whether it's nonghgdjd df.

字符串前面加个前缀r,表示这是一个 raw 字符串,里面的字符就不需要转义了
字符串前面有 r ,字符串里面就不需要转义了
Python3 入门教程
164524 学习 · 1135 问题
相似问题