我收到以下错误:
File "foo.py", line 6
print "This implementation requires the numpy module."
^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)
在这个Python代码中:
#!/usr/bin/python
try:
import numpy
except:
print "This implementation requires the numpy module."
exit(0)
###############################################################################
if __name__ == "__main__":
R = [
[1,2,3],
[4,5,6]
]
Run Code Online (Sandbox Code Playgroud)
怎么了?
编辑:我使用Python 3.3
| 归档时间: |
|
| 查看次数: |
196 次 |
| 最近记录: |