File "/home/workspace/Hello world/hello.py", line 5
print '(Initializing %s)' % self.name
^
IndentationError: unexpected indent
我发现在代码中,按下TAB键,这句代码就出错,把它移到前面去就正常。难道连缩进风格还这么讲究吗?
我记得c++和php都是可以自己写的,想怎么写就怎么写。好像没有这个限制吧。
一只名叫tom的猫
慕虎7371278
随时随地看视频慕课网APP