#可以直接在class的__init__()外面設定參數 class stu: school = '首府大學' def __init__(self,n1=''): pass a1 = stu() print(a1.school)