摘要: # coding=utf8from bs4 import BeautifulSoupimport requestshtml = requests.get("http://www.baidu.com")html.encoding='utf-8'soup = BeautifulSoup(html.tex 阅读全文
posted @ 2020-12-11 14:39 不不田鼠 阅读(108) 评论(0) 推荐(0) 编辑
摘要: # coding=utf8 #下载指定图片 from urllib.request import urlretrieve urlretrieve( "https://pics2.baidu.com/feed/b151f8198618367a0fd4de8fc29d33d3b21ce57e.jpeg? 阅读全文
posted @ 2020-12-11 14:31 不不田鼠 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 #服务器端代码 5 from flask import Flask,request,json app = Flask(__name__) @app.route('/success/<name>') def success(name): return 'welcome %s 阅读全文
posted @ 2020-12-11 14:08 不不田鼠 阅读(67) 评论(0) 推荐(0) 编辑