所以我在 python 27 中将派生幂规则模块保存为 PowerRule.py。当我尝试导入它时,会发生以下情况:
>>> import PowerRule
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import PowerRule
File "PowerRule.py", line 1
Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win32
^
SyntaxError: invalid syntax
>>>
我不知道如何解决它。你能帮我吗?