擅长:python、mysql、java
<p>这是我的解决方法:转到你的openpyxl站点包文件夹(对我来说是:<em>C:\Python27\Lib\site packages\openpyxl</em>)。复制中的所有变量。常量.json文件直接放入\u<em>init</em>\uy文件中,因此它看起来像:</p>
<blockquote>
<pre><code>import json
import os
__author__= "See AUTHORS"
__author_email__= "eric.gazoni@gmail.com"
__license__= "MIT/Expat",
__maintainer_email__= "openpyxl-users@googlegroups.com"
__url__= "http://openpyxl.readthedocs.org"
__version__= "2.4.0"
try:
here = os.path.abspath(os.path.dirname(__file__))
</code></pre>
</blockquote>