class Hello:
def __init__(self,name):
self._name = name
def sayHello(self):
print ("Hello {0}".format(self._name))
h = Hello("cat")
h.sayHello()
说我LINE5有问题可是我又不知问题在哪里
- jike_2101206 2016年08月18日 回答 #2楼
- 0 评论
- qq_6vknzs4r 2017年03月31日 回答 #3楼
你应该是TAB和空格键混用了,还是缩进的问题,参考http://www.crifan.com/python_syntax_error_indentationerror/comment-page-1/
- 0 评论