摘要:
from lxml import etree import requests url = 'https://www.qidian.com/all' headers={ 'User-Agent':'Mozilla/5.0(Windows;U;WindowsNT6.1;en-us)AppleWebKit 阅读全文
posted @ 2020-07-14 21:53
kuanleung
阅读(7)
评论(0)
推荐(0)
摘要:
import re str = 'I Study python3.7 everyday' print('--'*50) m1 = re.match(r'.',str) print(m1.group()) #m2=re.search(r'S\w+',str) #print(m2.group()) m3 阅读全文
posted @ 2020-07-14 18:25
kuanleung
阅读(4)
评论(0)
推荐(0)
摘要:
from bs4 import BeautifulSoup str = ''' <title>尚学堂</title> <div class='info' float='left'>Welcome to SXT</div> <div class='info' float='right'> <span> 阅读全文
posted @ 2020-07-14 18:21
kuanleung
阅读(8)
评论(0)
推荐(0)

浙公网安备 33010602011771号