用户:
一个已命名的昵称查看:0 回复:0 评论:0 创建时间:2022-06-11T21:33:42
【作品展示】

【作品介绍】
嘻嘻嘻
【作品源代码】
#********************导入库和工具********************#
import requests
import webbrowser
import os
# 地址
url = 'https://cn.喵'
# 发起请求
response = requests.get(url)
# 获取并打印到页面源代码
content = response.text
# 保存
with open('bing.html', 'w', encoding='utf-8') as f:
f.write(content)
webbrowser.open('file://'+os.path.realpath('bing.html'))
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn