Update getdata.py

master
pekwsmcbf 3 years ago
parent da71af75a8
commit f1165f6c30

@ -62,4 +62,13 @@ NUM = 0
f = open('10.txt', 'w', encoding="utf-8") f = open('10.txt', 'w', encoding="utf-8")
f.write(i) f.write(i)
f.close() 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