From dd8f338f1df1ea3af561a6b5747f55a8b6f11477 Mon Sep 17 00:00:00 2001 From: p2tfsuw8f <2517759664@qq.com> Date: Mon, 25 Apr 2022 20:26:51 +0800 Subject: [PATCH] Update getdata.py --- getdata.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/getdata.py b/getdata.py index 7666cdb..fd00403 100644 --- a/getdata.py +++ b/getdata.py @@ -47,4 +47,14 @@ date = [] time = [] through = [] Num = 0 -for i in result: \ No newline at end of file +for i in result: + NUM = 0 + f = open('20.txt', 'w', encoding="utf-8") + f.write(i) + f.close() + data = openreadtxt("20.txt") + data = str(data) + name1 = re.findall("病例\d", data) + 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: \ No newline at end of file