如果我在Python的交互式解释器中输入此内容:
>>> 'doesn\'t' "doesn't" >>> '"Isn\'t," they said.' '"Isn\'t," they said.'
为什么在第二种情况下打印转义字符(\)?我意识到我可以使用print()函数来转义它,即不打印它。
\
print()
https://stackoverflow.com/questions/60130856
相似问题