擅长:python、mysql、java
<p>在Python 3中,long()基本上被重命名为int()。
详情请参阅<a href="https://www.python.org/dev/peps/pep-0237/" rel="nofollow noreferrer">https://www.python.org/dev/peps/pep-0237/</a></p>
<p>因此,要么搜索long并替换为int,要么定义它</p>
<pre><code>long = int
</code></pre>
<p>文件开头的某个地方</p>