今天我在编码,我遇到了这个不寻常的错误。这是我的代码:
from direct.showbase.ShowBase import ShowBase
import cogManager
class application(ShowBase):
def __init__(self):
ShowBase.__init__(self)
playApplication = application()
playApplication.run()
错误:
Traceback (most recent call last):
File "CogCreator.py", line 2, in <module>
import cogManager
File "C:\Users\GeekyGamerGavin\Documents\Toontown Phase Files\NEW\cogManager.p
y", line 4
^
IndentationError: expected an indented block
但是当我删除代码时有效
import cogManager
我可以帮忙吗?我很困惑!
编辑:我没有混合空格/制表符!
编辑:修复它。谢谢!