05 2021 档案

摘要:实验任务1 ''' 银行账户 数据:持卡人姓名、账号、当前余额 操作:提款、取款、打印账户信息 ''' class Account: '''一个模拟银行账户的简单类''' def __init__(self, name, account_number, initial_amount):#构造新账户 阅读全文
posted @ 2021-05-31 22:57 #三三 阅读(52) 评论(1) 推荐(0)
摘要:with open('data1_1.txt', 'r', encoding = 'utf-8') as f: n = 0 for line in f: if line.strip('\n') == '': continue n += 1 print(f'共{n}行') with open('dat 阅读全文
posted @ 2021-05-18 12:59 #三三 阅读(50) 评论(0) 推荐(0)