Loading

摘要: import requests from bs4 import BeautifulSoup r = requests.get('https://www.starbucks.com.cn') soup = BeautifulSoup(r.text,'lxml') imgs = soup.select( 阅读全文
posted @ 2023-04-10 16:46 mingBolg 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2023-04-10 09:23 mingBolg 阅读(15) 评论(0) 推荐(0) 编辑
摘要: from bs4 import BeautifulSoup soup = BeautifulSoup(open('index.html',encoding='utf-8'),'lxml') print(soup) 就可以使用了. 下面是一些用法示例: from bs4 import Beautifu 阅读全文
posted @ 2023-04-10 09:23 mingBolg 阅读(21) 评论(0) 推荐(0) 编辑