源代码(Python3)
需要requests,BeautifulSoup库
# -*- coding: cp936 -*-"""Created on Sat Jun 29 13:04:06 @author: 兄主的仙人掌"""#输出:兄主的仙人掌是沙雕import requests as rqfrom bs4 import BeautifulSoupurl = https://xzdxrz.github.io/
es = rq.get(url)#print(res.text)bs = BeautifulSoup(res.text,lxml)#print(type(bs.title))name = str(bs.title)[7
如果觉得《沙雕代码(我真的是无聊)》对你有帮助,请点赞、收藏,并留下你的观点哦!