from flask import Flask
app = Flask(__name__) #__name__ is the module will be executed

@app.route("/")  #function decorator
def home():
    return "Hello Flask"

@app.route("/test")
def test():
    return "this is Test"

if __name__=="__main__":
    app.run() #start server
4239219f6d60e2ac6d437c660200cce282acdd23
<mask token>


@app.route('/')
def home():
    return 'Hello Flask'


@app.route('/test')
def test():
    return 'this is Test'


<mask token>

<mask token>


@app.route('/')
def home():
    return 'Hello Flask'


@app.route('/test')
def test():
    return 'this is Test'


if __name__ == '__main__':
    app.run()

<mask token>
app = Flask(__name__)


@app.route('/')
def home():
    return 'Hello Flask'


@app.route('/test')
def test():
    return 'this is Test'


if __name__ == '__main__':
    app.run()

from flask import Flask
app = Flask(__name__)


@app.route('/')
def home():
    return 'Hello Flask'


@app.route('/test')
def test():
    return 'this is Test'


if __name__ == '__main__':
    app.run()

from flask import Flask
app = Flask(__name__) #__name__ is the module will be executed

@app.route("/")  #function decorator
def home():
    return "Hello Flask"

@app.route("/test")
def test():
    return "this is Test"

if __name__=="__main__":
    app.run() #start server