A:Why couldn't I import the time module? 简单的一句:import time 在Python解释器下执行没有问题,可一嵌入到C中(我在C程序里用PyRun_SimpleFile()执行)就会出错,WHY? Traceback (most recent call last): File "test.py", line 1, in ? import time ImportError: /usr/lib/python2.2/lib-dynload/timemodule.so: undefined symbol: PyInt_FromLong 编辑者: xiaowu (03-11-09 21:16) |