class People:
def __init__(self, name, weight):
self.name = name
self.weight = weight
print("%s 出生了,没有跑步也没有喝东西体重是:%.2f公斤" % (self.name
新手在python里面对函数 __init__(self)和__srt__,return的理解
最新推荐文章于 2023-12-28 16:43:45 发布