摘要: 一、定义类 1.类名要求:类名要首字母大写 2.创建类:create File class File: #创建类 def __init__(self): #self作为类中的索引 #__init__ 初始化实例 self.name = "f1" self.create_time = "today" 阅读全文
posted @ 2022-07-26 16:44 山海二一 阅读(34) 评论(0) 推荐(0)