摘要: 1 def show(): #show() 类外的是函数 2 print("hello") 3 4 5 class Person(object): # Person:类的名称(类名)首字母必须是大写 object是所有类的父类,可以说是类的祖先 6 city="西安" # 数据属性(也叫类属性,是类 阅读全文
posted @ 2022-04-01 21:05 jia--- 阅读(208) 评论(0) 推荐(0)