frog.py 330 B

1234567891011121314
  1. from flask import Flask
  2. from flask import request
  3. from flask import make_response
  4. from flask import redirect
  5. from flask import render_template
  6. app=Flask(__name__)
  7. @app.route('/')
  8. def index():
  9. return render_template('index.html')
  10. @app.route('/hello/<user>')
  11. def hello(user):
  12. return render_template('hello.html',user=user)