只需要在代码前添加个r就行了
>>> str= r"C:/nue"
>>> str
'C:/nue'
>>> str1=r"//k'sffff!"
>>> str1
"//k'sffff!"
>>> print(r'C:\Program Files\666\kkk''\\')
C:\Program Files\666\kkk\
>>> str = r'C:\Program Files\666\kkk''\\'
>>> str
'C:\\Program Files\\666\\kkk\\'
>>>