不是里面有‘嗎,為什么不用\轉義
>>> 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.
>>> 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.
2020-09-16
舉報
2021-01-10
字符串前面加個前綴
r
,表示這是一個?raw?字符串,里面的字符就不需要轉義了2020-09-16
字符串前面有 r ,字符串里面就不需要轉義了