class Student: # 定义类Student ... version = "1.0" # 类属性 ... author = "python.cn" ... def __init__(self): # 构造函数 ... print("__init__() is Running")
確定! 回上一頁