摘要: import urllib.request import re url='https://www.huya.com/' r=urllib.request.urlopen(url) a=re.findall(r'target="_blank">(\w*?)</a>',r.read().decode(' 阅读全文
posted @ 2020-10-14 21:05 si1encely 阅读(61) 评论(0) 推荐(0)
摘要: import re a=re.compile('asd') # b=a.search('ASDASDasd') # b=a.match('ASDASDasd') # b=a.findall('ASDASDasd') # a=re.findall('asd','ASasdDASDasd') # a=r 阅读全文
posted @ 2020-10-14 20:48 si1encely 阅读(64) 评论(0) 推荐(0)
摘要: # coding:UTF-8 import requests import time def get_exchange(): list = [] for i in range(1,3): Bi_API = "https://dncapi.bqrank.net/api/v2/exchange/web- 阅读全文
posted @ 2020-10-14 13:22 si1encely 阅读(483) 评论(0) 推荐(0)