flaskで簡単なオウム返しプログラムを作りたい flask > "write me!" > "you said {}" from flask import * app = Flask(__name__) @app.route("/", methods=["GET","POST"]) def hello(): if request.method == "GET": return """ write me! <form action="/" mathod="POST"> <input name="text"></input> </form>""" else: try: return """ you said {} <form action="/" method="POST"> <input name="text"></input> </form>""".format(request.form["text"]) if __name__ == "__main__": app.run() write me!write me!...
typo
GET `method` `mathod` GET
xcX3v84RxoQ-4GxG32940ukFUIEgYdPy
04ab052bc8d6f4668da57a5070091230
Stop