From a7e12d60f7f0d609fd066c4562408f94c1a10db1 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 23 May 2018 18:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAhtml=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E4=B8=8A=E4=B8=80=E9=A1=B5=EF=BC=8C=E4=B8=8B=E4=B8=80=E9=A1=B5?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E7=9A=84python=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh/a_href.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 zh/a_href.py diff --git a/zh/a_href.py b/zh/a_href.py new file mode 100644 index 00000000..b0cc8b7c --- /dev/null +++ b/zh/a_href.py @@ -0,0 +1,29 @@ +import os +import os.path +path =os.getcwd() +listdir =os.listdir(path) +html =[] +for dirs in listdir: + if (dirs[-1]=="l") and (dirs[0].isnumeric()): + html.append(dirs) + +html.sort() +print(html) +k=0 +for item in html: + if 0下一页\n') + f.write('\n上一页\n') + + k = k+1 +print("end!")