from flask import Flask
app = Flask(name)
@app.route('/')
def hello_world():
return 'Hello World!'
@app.route('/usr/<name>',methods=['get'])
@app.route('/user/<name>')
def user(name):
print(name)
return name
if name == 'main':
app.run()
from flask import Flask
app = Flask(name)
@app.route('/')
def hello_world():
return 'Hello World!'
@app.route('/user/<name>')
def user(name):
print(name)
return name
if name == 'main':
app.run()