WinError 123文件名,目录名称或卷标签语法不正确 [英] WinError 123 The filename, directory name, or volume label syntax is incorrect
本文介绍了WinError 123文件名,目录名称或卷标签语法不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
[WinError 123]文件名,目录名称或卷标签语法不正确
[WinError 123] The filename, directory name, or volume label syntax is incorrect
推荐答案
路径\f
中的此处解码为ascii换页\x0c
,因此出现了问题.
在路径前面使用r
作为r"c:\\path\to\dir"
使其成为原始字符串.
Here in the path \f
is decoded as ascii formfeed \x0c
, hence the issue.
Use r
in front of path as r"c:\\path\to\dir"
to make it raw string.
这篇关于WinError 123文件名,目录名称或卷标签语法不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文