语法错误:
file = '1.ts'
os
.path
.exists
(os
.getcwd
() + "\钉钉ts视频
2\"
+ file)
os
.path
.exists
(os
.getcwd
() + "\钉钉ts视频2\\" + file)
os
.path
.exists
(os
.getcwd
() + r"\钉钉ts视频
2\"
+ file)
正确用法:
file = '1.ts'
os
.path
.exists
(os
.getcwd
() + "\钉钉ts视频2" + f
'\{file}')
转载请注明原文地址: https://lol.8miu.com/read-5578.html