我有大量的Python 2代码。它希望在开始时检查python3,如果使用python3,则退出。所以我试着: print("Sorry, requires Python 2.x, not Python3.x")
print "Here comes a lot of pure Python 2.x stuff
我想使用线程池来加速这个过程。虽然编译过程中没有错误,但不会显示“error”。我的代码正确吗?此外,我发现了以下内容。为什么?print(x,args,kwargs) //正确import numpy as npimport time
return np.random.normal(0, 1, 1)
import sys;sys.path.append("/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7project\pipelines.py", line 18 ^我已经安装了mysql-python