Commit b2673e06 by BellCodeEditor

auto save

parent 08a215ec
Ⱥ,100,100,100
"""读取csv文件""" from pyecharts.charts import Bar
import csv import csv
with open('report.csv','r',encoding='utf-8') as csvfile: file=open('工作簿1.csv')
f_csv=csv.reader(csvfile) reader=csv.reader(file)
f_csv=list(f_csv) original=list(reader)
pi=f_csv[7] file1=open('工作簿2.csv','w',newline='')
print(pi) content=csv.writer(file1)
for row in f_csv: for row in original:
print(row[3]) content.writerow(row)
content.writerow(['吴乃群',100,100,100])
file.close()
file1.close()
......
姓名,语文,数学,英语,,,
姓名,语文,数学,英语,,,
张三,27 ,94 ,51 ,,,
李四,76 ,96 ,0 ,,,
王五,67 ,45 ,80 ,,,
robin,34 ,88 ,42 ,,,
tim,2 ,47 ,58 ,,,
tom,42 ,68 ,15 ,,,
rose,93 ,99 ,3 ,,,
lisa,68 ,83 ,17 ,,,
role,14 ,77 ,64 ,,,
tone,58 ,87 ,56 ,,,
lone,65 ,17 ,42 ,,,
kim,80 ,51 ,33 ,,,
lola,4 ,57 ,79 ,,,
lady gaga,17 ,93 ,45 ,,,
black,6 ,17 ,93 ,,,
write,35 ,83 ,68 ,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
姓名,语文,数学,英语,,,
姓名,语文,数学,英语,,,
张三,27 ,94 ,51 ,,,
李四,76 ,96 ,0 ,,,
王五,67 ,45 ,80 ,,,
robin,34 ,88 ,42 ,,,
tim,2 ,47 ,58 ,,,
tom,42 ,68 ,15 ,,,
rose,93 ,99 ,3 ,,,
lisa,68 ,83 ,17 ,,,
role,14 ,77 ,64 ,,,
tone,58 ,87 ,56 ,,,
lone,65 ,17 ,42 ,,,
kim,80 ,51 ,33 ,,,
lola,4 ,57 ,79 ,,,
lady gaga,17 ,93 ,45 ,,,
black,6 ,17 ,93 ,,,
write,35 ,83 ,68 ,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
吴乃群,100,100,100
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment