提交 e641bc46 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷
浏览文件

new update

上级 4c5a218a
......@@ -111,8 +111,7 @@ url = url[0:-1]
response = rq.urlopen(url)
html = str(response.read())
find_re = re.compile(r'<station\s.+?"\s/>',re.DOTALL)
find_re = re.compile(r'<station\s.+?"/>',re.DOTALL)
for info in find_re.findall(html):
sta_info = re.split('\w+="|"\s+?\w+="|"\s/>',info)
if sta_info == []:
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册