摘要: 1 class Student(): 2 name = 'lemon' 3 4 print(Student.__dict__) 5 print(Student.name) 6 Student.name = 'lemon-Xu' 7 print(Student.name) Class.__dict__ 阅读全文
posted @ 2018-10-06 15:29 lemon-Xu 阅读(155) 评论(0) 推荐(0)
摘要: 1 def stu1(name = "No name", adr = "NO adr"): 2 print("name:{} adr:{}".format(name,adr)) 3 4 stu1(adr="adr") 5 stu1('adr') 6 7 def stu2(*args): 8 ''' 阅读全文
posted @ 2018-10-06 11:32 lemon-Xu 阅读(257) 评论(0) 推荐(0)