标签: python windows
import os path = '\\\\?\\D:\\abcd\\687857\\MSSQL_DATA\\gfgf' os.makedirs(os.path.dirname(path))
注意:请确保文件夹" abcd"不存在。抛出的错误是
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: u'\\\\'