计算机程序设计(Python)-21级 (南京信息工程大学)

  • 实验5

    #tesk3.py with open('data3.txt','r+', encoding='UTF-8') as f: Z=[] Y=[] x=[] for i in f: x.append(i.strip('\n')) newx=x[1:11] for i in newx: y=float(i
    东楼贺朝   2022-05-16 21:44   0   2
  • 实验5

    with open('data3.txt','r+', encoding='UTF-8') as f: num = [line.strip('\n') for line in f] num.pop(0) num_print = [eval(i) for i in num] print(f"原始数据:
    段承昊   2022-05-16 21:39   0   8
  • 实验5

    task3 with open('C:/Users/dell/Desktop/实验5数据文件/data3.txt','r+',encoding='utf_8')as f: a=[] b=[] for line in f.readline(): line=line.strip('\n') a.appe
    周易潇   2022-05-16 21:27   0   5
  • 实验5

    with open('data3.txt','r+',encoding='utf-8')as f: a=[] for i in f: i=i.strip('\n') a.append(i) a.pop(0) b=[eval(i) for i in a] print(f'原始数据:\n{b}') c=
    王景如   2022-05-16 21:25   0   5
  • 实验五

    task2 with open('C:\\Users\\86131\\Desktop\\实验5数据文件\\实验5数据文件\\data2.txt','r',encoding='utf-8') as f: data=f.read().split('\n') unique_line=[] for line
    雷建彬   2022-05-16 21:25   1   6
  • 实验五

    task3.py 1 with open('data3.txt', 'r', encoding='utf-8') as f: 2 data = f.read().split('\n') 3 yuanshishuju = data.pop(0) 4 data1 = [eval(i) for i in
    夜炫川   2022-05-16 21:25   1   1
  • 实验五

    task3 with open('data3.txt','r',encoding='utf-8') as f : with open('data3_processed.txt', 'w', encoding='utf-8') as f1: data=f.read().strip().split('\
    桑羽   2022-05-16 21:17   0   2
  • 实验5 文件应用编程

    1,实验任务3 1 with open('data3.txt','r',encoding='utf-8') as f: 2 data=f.read() 3 a=[] 4 data=data.split('\n') 5 for i in range(len(data)): 6 if i!=0: 7 a
    炸呼   2022-05-16 20:49   1   4
  • 实验5

    3 1 with open('data3.txt','r',encoding='utf-8') as f1: 2 with open('data3_processed.txt', 'w', encoding='utf-8') as f2: 3 a=f1.read().split('\n') 4 a.
    yfxyyczs   2022-05-16 20:39   0   2
  • 实验五

    task3 1 with open('data3.txt','r',encoding='utf-8') as f: 2 data=f.readlines() 3 f.close() 4 with open('data3_processed.txt','w',encoding='utf-8') as
    VolcanX   2022-05-16 20:19   1   4