1.安装flask pip install flask
2.使用flask, 在服务器上面看到response返回数据
from flask import Flask
app = Flask(__name__)
@app.route('/',method = 'get')
login():
data = {
'username':'13472729774'
‘password’:'123456'
}
return data
if __name__ == '__main'__ :
login()