问答详情
源自:3-6 Python中raw字符串与多行字符串

字符串用r'''...'''的形式改写


相关截图:
610b8d8b0001b78203600800.jpg这个为啥没搞懂啥意思?求解

提问者:洛芊云 2021-08-05 15:05

个回答

  • 清无
    2021-08-13 16:05:55

    r只对转义字符有用。使用原始字符串(就那个r),可以避免反斜杠(\)被当作转义字符解析:

  • weixin_慕娘7296860
    2021-08-05 16:11:32

    r"""to be or not to be:
    that is a question,whether it is nobler in the mind to suffer."""