10 2020 档案

摘要:class Person: def __init__(self, name, age, height): self.name = name self.age = age self.height = height def __str__(self): """返回对象的描述信息""" return '{ 阅读全文
posted @ 2020-10-11 18:24 candidjuan 阅读(108) 评论(0) 推荐(0)
摘要:age = 18 print(id(age)) # id 1979018800 def count_age1(): print(age) # 18 print('count_age1()的结果') count_age1() print('') def count_age2(): age = 1 # 阅读全文
posted @ 2020-10-02 23:08 candidjuan 阅读(114) 评论(0) 推荐(0)