摘要:
实验任务3: 1 with open('data3.txt','r',encoding='utf-8')as f: 2 t=f.readlines() 3 p=[] 4 for i in t: 5 if t[0]==i: 6 y='原始数据'+'\t'+'四舍五入后数据'+'\n' 7 p.appe 阅读全文
摘要:
1 x = list(range(10)) 2 print('整数输出1: ', end = '') 3 for i in x: 4 print(i, end=' ') 5 print('\n整数输出2: ', end = '') 6 for i in x: 7 print(f'{i:02d}', 阅读全文