当前位置:网站首页>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 -
边栏推荐
- Mysql基本查询
- From the basic concept of micro services to core components - explain and analyze through an example
- 数据库日期类型全部为0
- list indices must be integers or slices, not tuple
- Paper reading notes -- crop yield prediction using deep neural networks
- I interviewed a 38 year old programmer and refused to work overtime
- regular expression
- HDU 3078 network (lca+ sort)
- HDU 1914 the stable marriage problem
- 凛冬已至,程序员该怎么取暖
猜你喜欢

【ARIXV2204】Neighborhood attention transformer

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

FreeRTOS personal notes - task notification

Keil Chinese garbled code solution

Know etcd

【ARXIV2203】Efficient Long-Range Attention Network for Image Super-resolution

RT based_ Distributed wireless temperature monitoring system of thread (I)

Message forwarding mechanism -- save your program from crashing

Evolution of ape counseling technology: helping teaching and learning conceive future schools
![[computer level 3 information security] overview of information security assurance](/img/f0/a72e61fda58ea93ca4e9db7274f6e3.png)
[computer level 3 information security] overview of information security assurance
随机推荐
flink思维导图
FreeRTOS个人笔记-任务通知
MySQL basic query
Class class added in ES6
【CVPR2022】On the Integration of Self-Attention and Convolution
11. < tag dynamic programming and subsequence, subarray> lt.115. Different subsequences + Lt. 583. Deletion of two strings DBC
Advanced assignment method of ES6 -- Deconstruction assignment
What tools do software testers need to know?
MySQL(5)
HDU 3078 network (lca+ sort)
Data security is gradually implemented, and we must pay close attention to the source of leakage
Autoreleasepool problem summary
HDU 1530 maximum clique
Online sql to XML tool
PC side bug record
php7.1 连接sqlserver2008r2 如何测试成功
Using RAC to realize the sending logic of verification code
Introduction to testcafe
Program life | how to switch to software testing? (software testing learning roadmap attached)
[learning record] data enhancement 1