r 用法
例如:输出文件路径
>>> print('c:\nrthwind\northwest')
c:
rthwind
orthwest
>>>
这个结果并不是我们想要的
1.加入\转义字符:
>>> print('c:\\nrthwind\\northwest')
c:\nrthwind\northwest
>>>
2.字符串前加r (不是一个普通字符串,而是一个原始字符串)
>>> print(r'c:\nrthwind\northwest')
c:\nrthwind\northwest
>>>
>>> print(r"let's go")
let's go
04-10
1290
08-14
544
01-21
4579