class Geese:
'''大雁类'''
def __init___(self):
print('我是大雁类!')
wildGoose = Geese()
这段代码运行后没有结果显示,《Python从入门到精通》中的代码,书中说运行后会输出以下内容:“我是大雁类!”
class Geese:
'''大雁类'''
def __init___(self):
print('我是大雁类!')
wildGoose = Geese()
这段代码运行后没有结果显示,《Python从入门到精通》中的代码,书中说运行后会输出以下内容:“我是大雁类!”