在pythonshell上运行命令时,Import android命令引发错误
我试图在python shell上执行“importandroid”命令。它给出如下错误:在pythonshell上运行命令时,Import android命令引发错误,python,Python,我试图在python shell上执行“importandroid”命令。它给出如下错误: >>> **import android** Traceback (most recent call last): File "<pyshell#11>", line 1, in <module> import android File ".\android.py", line 51 print result['error']
>>> **import android**
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
import android
File ".\android.py", line 51
print result['error']
^
>**导入android**
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
导入android
文件“\android.py”,第51行
打印结果['error']
^
我在电脑(Windows7)上安装了Python3.3.2,并且在我的系统的python目录中提供了android.py(SL4A),系统路径也包含python
Plz帮助解决此错误 Print在Python3上从语句更改为函数。您尝试导入的模块(android)是为Python 2编写的 您应该使用Python2解释器,或者查找(或使)该模块与Python3兼容