Answers for "use friendly flask documantion"

3

flask.pocoo.org quickstart

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'
Posted by: Guest on June-11-2020
0

from flask import Flask app = Flask(__name__) @app.route('/',methods = ('GET')) def home(): return ('Hello World!!1') if __name__== '_main_': app.run()

from flask import Flask 

app = Flask(__name__)

@app.route('/',methods = ('GET'))
def home():
    return ('Hello World!!1')

    if __name__== '_main_':
        app.run()
Posted by: Guest on December-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language