python mapping 页面

from flask import Flask, request
import os,sys,re
import simplejson
from flask_json import FlaskJSON
app = Flask(__name__)
json = FlaskJSON(app)
from flask import render_template


@app.route('/tt', methods=['GET'])
def testTT():
print('test information')
return render_template("/ss.html")


ss.html文件必须放在同目录下面的templates目录下面

你可能感兴趣的:(python)