![](https://img-blog.csdnimg.cn/9782159df7d2421281e834121a3d384d.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
flask
Python Flask 使用,同名公众号:JavaPub
JavaPub-rodert
技术&自媒体,专注于面试技巧,擅长Java、Go、MySQL、区块链
展开
-
python3之flask快速入门教程Demo
本代码是flask入门篇,适合初学者,阅读时间大概三分钟,实现输入固定账号密码跳转到百度首页,持续更新,需要请关注HTML文件放在templates目录下<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Docum原创 2018-10-22 12:06:30 · 2884 阅读 · 0 评论 -
python做http请求
基于flask,封装http服务 #客户端import requestsurl = 'http://127.0.0.1:16701/mail/sendmail'response = requests.post(url,data={"subject":"subject","body":"Test","to":["test@163.com","wej@qq.com原创 2019-02-14 16:40:04 · 1460 阅读 · 0 评论 -
Flask之ajax操作示例
python3.6,flask使用简例,目录结构index2.html<html><head> <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <script s...原创 2019-01-30 15:18:02 · 6196 阅读 · 0 评论 -
python 启动一个http服务
from flask import Flaskfrom flask_restful import Api, Resource, reqparseparser = reqparse.RequestParser(trim=True)parser.add_argument('name', location=['json', 'args'])parser.add_argument('name'...转载 2019-07-18 10:15:37 · 1120 阅读 · 0 评论