from flask import Flask, render_template, request
app = Flask(__name__)

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

@app.route('/user/<uid>')       # string type parameter
def string_fn(uid):
    return uid

@app.route('/int/<int:number>')     # int type parameter
def int_fn(number):
    return str(100*number)

@app.route('/float/<float:number>')     # float type parameter
def float_fn(number):
    return str(number * 10)

@app.route('/path/<path:path>')
def path_fn(path):
    return f'path {path}'

@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'GET':
        return render_template('03.login.html')
    else:
        return render_template('02.welcome.html')

if __name__ == '__main__':
    app.run(debug=True)
505b1b273590d1313b8943d3e93dc3c0905eec37
<mask token>


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


@app.route('/user/<uid>')
def string_fn(uid):
    return uid


<mask token>


@app.route('/float/<float:number>')
def float_fn(number):
    return str(number * 10)


@app.route('/path/<path:path>')
def path_fn(path):
    return f'path {path}'


@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'GET':
        return render_template('03.login.html')
    else:
        return render_template('02.welcome.html')


<mask token>

<mask token>


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


@app.route('/user/<uid>')
def string_fn(uid):
    return uid


@app.route('/int/<int:number>')
def int_fn(number):
    return str(100 * number)


@app.route('/float/<float:number>')
def float_fn(number):
    return str(number * 10)


@app.route('/path/<path:path>')
def path_fn(path):
    return f'path {path}'


@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'GET':
        return render_template('03.login.html')
    else:
        return render_template('02.welcome.html')


<mask token>

<mask token>


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


@app.route('/user/<uid>')
def string_fn(uid):
    return uid


@app.route('/int/<int:number>')
def int_fn(number):
    return str(100 * number)


@app.route('/float/<float:number>')
def float_fn(number):
    return str(number * 10)


@app.route('/path/<path:path>')
def path_fn(path):
    return f'path {path}'


@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'GET':
        return render_template('03.login.html')
    else:
        return render_template('02.welcome.html')


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

<mask token>
app = Flask(__name__)


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


@app.route('/user/<uid>')
def string_fn(uid):
    return uid


@app.route('/int/<int:number>')
def int_fn(number):
    return str(100 * number)


@app.route('/float/<float:number>')
def float_fn(number):
    return str(number * 10)


@app.route('/path/<path:path>')
def path_fn(path):
    return f'path {path}'


@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'GET':
        return render_template('03.login.html')
    else:
        return render_template('02.welcome.html')


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

from flask import Flask, render_template, request
app = Flask(__name__)

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

@app.route('/user/<uid>')       # string type parameter
def string_fn(uid):
    return uid

@app.route('/int/<int:number>')     # int type parameter
def int_fn(number):
    return str(100*number)

@app.route('/float/<float:number>')     # float type parameter
def float_fn(number):
    return str(number * 10)

@app.route('/path/<path:path>')
def path_fn(path):
    return f'path {path}'

@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'GET':
        return render_template('03.login.html')
    else:
        return render_template('02.welcome.html')

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