擅长:python、mysql、java
<p>考虑使用<code>shutil.copyfile(src, dst)</code>而不是<code>shutil.copy()</code>,因为您拥有写入所有文件的权限。让我知道这是否有效。你知道吗</p>
<p>否则,请检查您是否具有写入指定文件的权限,尝试在没有<code>XYZ 1310_template.xlsx</code>文件的情况下运行程序,并查看这是否是唯一无法工作的文件。你知道吗</p>
<p>更多的提示可以在<a href="https://docs.python.org/2/library/shutil.html" rel="nofollow noreferrer">documentary</a>中找到
或者<a href="https://stackoverflow.com/questions/11278066/using-shutil-copyfile-i-get-a-python-ioerror-errno-13-permission-denied">that post</a>早些时候问过。你知道吗</p>