Update getdata.py

master
pgvxkfc79 3 years ago
parent 572251eda3
commit 9743101d49

@ -80,4 +80,15 @@ NUM = 0
date += date1
x += 1
i = 0
name2 = name1[0].split()
name2 = name1[0].split()
while i < numname:
name += name2
i += 1
num = range(0, Num)
rows = zip(num, name, date, date, time, through)
with open("test.csv", "w", encoding='utf-8', newline="") as t:
writer = csv.writer(t)
writer.writerow(["", "病例", "开始日期", "结束日期", "时间", "事件"])
for row in rows:
writer.writerow(row)
t.close()
Loading…
Cancel
Save