位置:首頁 > 軟件操作教程 > 編程開發(fā) > Python > 問題詳情

使用class創(chuàng)建對象——python函數(shù)

提問人:楊紫紅發(fā)布時間:2020-11-26

使用class創(chuàng)建對象

a = Account(1000.0)

a.deposit(550.23)

a.deposit(100)

a.withdraw(50)

print a.getBalance()

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(0)
返回頂部