银行账户资金交易管理
import time
import prettytable as pt
balance = 1000 # 初始化余额
acount_log = [] # 初始化交易日志
class Bank:
def __init__(self):
"""初始化"""
global balance
self.balance = balance
self.acount_log = acount_log
def deposit(self):
"""存款"""
amount = float(input('请输入存款金额:'))
self.balance += amount
self.write_log(amount,'转入')
def withdrawl(self)