Update getdata.py

master
pekwsmcbf 3 years ago
parent da71af75a8
commit f1165f6c30

@ -58,8 +58,17 @@ NUM = 0
getOne = re.findall("\d{1,2}月\d{1,2}?日.*?。+(?=\d{1,2}月\d{1,2}日)|\d{1,2}月\d{1,2}?日.*?。+(?=病例)", data)
numname = 0
for i in getOne:
NUM += 1
NUM += 1
f = open('10.txt', 'w', encoding="utf-8")
f.write(i)
f.close()
data = str(data)
date1 = re.findall("\d{1,2}月\d{1,2}日+(?=)", data)[0]
date1 = date1.split()
time += re.findall("\d{1,2}:\d{1,2}--\d{1,2}:\d{1,2}|\d{1,2}:\d{1,2}", data)
updateFile(r"10.txt", "[0-9月\'\",:-]", "")
updateFile(r"10.txt", "日,", "")
data = openreadtxt("10.txt")
data = str(data)
t = re.findall("(?<=。)+.*?。", data)
through += t
Loading…
Cancel
Save