deposit(acct, 100) print(acct.balance) # 100 withdraw(acct, 50) print(acct.balance) # 50 上例中,class 用來定義一個類別,現在還沒有要定義類別特性(Property ...
openhome.cc