che*_*cks 2 python string syntax
我的印象是,在Python中,原始字符串的编写方式r'this is a raw string'
会省略任何转义字符,并准确打印引号之间的内容。我的问题是,当我尝试时,print r'\'
我得到了SyntaxError: EOL while scanning string literal
。print r'\n'
不过,打印正确\n
。
归档时间: |
|
查看次数: |
6214 次 |
最近记录: |