大佬们帮忙看看
python3吧
全部回复
仅看楼主
level 3
老是这样报错,有什么解决方法吗
2021年03月03日 14点03分 1
level 3
,1
2021年03月03日 14点03分 2
level 3
1
2021年03月03日 14点03分 3
level 3
1
2021年03月03日 14点03分 4
level 3
单机贴吧[泪][泪]
2021年03月03日 14点03分 5
level 5
你好,对Python感兴趣的朋友可以加q交流裙哦:821189983
群内每天都会更新Python资料和源码,回复:g 即可免费领取。
还有大神专业指导哦! 坐等你来!!
2021年03月04日 01点03分 6
level 6
路径字符串前要加r,代表原始字符串。否则反斜杠后接的字符会被转义。
with open(r'C:\Users\oo\Desktop\1_1.txt', 'r') as fp:
2021年03月04日 02点03分 7
level 6
r'C:\Users\oo\Desktop\1_1.txt'
'C:\\Users\\oo\\Desktop\\1_1.txt'
这两种写法都可以
2021年03月04日 02点03分 8
level 6
这样写也可以
'C:/Users/oo/Desktop/1_1.txt'
2021年03月04日 02点03分 9
谢谢大佬了
2021年03月04日 09点03分
1