当前位置:网站首页>Flask Development & get/post request
Flask Development & get/post request
2022-07-28 05:19:00 【Pony_ eighteen】
Flask Environment building
pip install Flask # uppercase F

from flask import Flask
import json
app=Flask(__name__) # initialization app
@app.route('/') # Establish a routing
def login():
data = json.dumps({
'name': 'moklv',
'age': 13
})
return data
if __name__ == '__main__':
app.run() # function appTerminal console :
D:\pythom38\python.exe E:/Flask_study/study_0710.py
* Serving Flask app 'study_0710' (lazy loading)
* Environment: production
* Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
127.0.0.1 - - [10/Jul/2022 18:12:37] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2022 18:12:37] "GET /favicon.ico HTTP/1.1" 404 -
边栏推荐
- Share several methods of managing flag bits in C program
- mysql的日期与时间函数,varchar与date相互转换
- Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
- 【ARXIV2203】CMX: Cross-Modal Fusion for RGB-X Semantic Segmentation with Transformers
- MySQL 默认隔离级别是RR,为什么阿里等大厂会改成RC?
- 数据安全逐步落地,必须紧盯泄露源头
- ES6 new variable modifiers let and const, new basic data type symbol
- 【CVPR2022】Lite Vision Transformer with Enhanced Self-Attention
- RT based_ Distributed wireless temperature monitoring system of thread (I)
- 类和对象【中】
猜你喜欢
![Classes and objects [medium]](/img/0a/955d00d63f06e7e15e946599628edf.png)
Classes and objects [medium]
![[internal mental skill] - creation and destruction of function stack frame (C implementation)](/img/a9/81644ee9ffb74a5dc8ff1bc3977f49.png)
[internal mental skill] - creation and destruction of function stack frame (C implementation)

HashSet add

Improving the readability of UI layer test with puppeter

Check box error

Struct模块到底有多实用?一个知识点立马学习

The default isolation level of MySQL is RR. Why does Alibaba and other large manufacturers change to RC?

【ARIXV2204】Neighborhood attention transformer
![[computer level 3 information security] overview of information security assurance](/img/f0/a72e61fda58ea93ca4e9db7274f6e3.png)
[computer level 3 information security] overview of information security assurance

MySQL date and time function, varchar and date are mutually converted
随机推荐
Transformer -- Analysis and application of attention model
Implementation of simple upload function in PHP development
HDU 2874 connections between cities
Bean的作用域、执行流程、生命周期
7.<tag-字符串和API的取舍>补充: 剑指 Offer 05. 替换空格
How should programmers keep warm when winter is coming
Database date types are all 0
How to simulate common web application operations when using testcafe
Autoreleasepool problem summary
The default isolation level of MySQL is RR. Why does Alibaba and other large manufacturers change to RC?
多御安全浏览器将改进安全模式,让用户浏览更安全
How to quickly turn function test to automatic test
MySQL 默认隔离级别是RR,为什么阿里等大厂会改成RC?
数据安全逐步落地,必须紧盯泄露源头
Offline loading of wkwebview and problems encountered
数据库日期类型全部为0
Gym 101911c bacteria (minimum stack)
The research group passed the thesis defense successfully
Array or object, date operation
Barbie q! How to analyze the new game app?