我的代码: if os.path.exists(myDir): shutil.rmtree(myDir) os.mkdir(myDir) 问题:如果myDir 不存在,它总是有效。如果myDir 存在,有时它会抛出错误,有时它会起作用 ...
確定! 回上一頁