【发布时间】:2015-02-12 14:15:45
【问题描述】:
我想打印出来
this is '(single quote) and "(double quote)
我使用以下(我想在这里使用原始字符串'r')
a=r'this is \'(single quote) and "(double quote)'
但它会打印出来
this is \'(single quote) and "(double quote)
在原始字符串中转义 ' 的正确方法是什么?
【问题讨论】:
标签: python string python-2.7