from flask import Flask,redirect,render_template,jsonify,send_file,request,Markup,session
import json
from datetime import timedelta
app = Flask(__name__)
#字符串操作:
@app.route("/")
def index():
#return "大姐大宿建德江撒"
# jsonify 和 json 的区别
#return jsonify({'name':123}) #响应头 Content-Type: application/json
return json.dumps({'name': 123}) #响应头 Content-Type: text/html; charset=utf-8