摘要:
import requests from bs4 import BeautifulSoup r = requests.get('https://www.starbucks.com.cn') soup = BeautifulSoup(r.text,'lxml') imgs = soup.select( 阅读全文
摘要:
f = 3 d = 6 # print(f>5 or d>5) # print(not (d>5)) # (f>5) and print(111) #输出 # print( '我是好人%s' % ('哈哈')) # name = input('请输入名字') # print( 'tama d hua 阅读全文
摘要:
from bs4 import BeautifulSoup soup = BeautifulSoup(open('index.html',encoding='utf-8'),'lxml') print(soup) 就可以使用了. 下面是一些用法示例: from bs4 import Beautifu 阅读全文