0
不通過user_name
到other_function
作爲參數,我將如何訪問user_name
?在調用函數外部訪問Flask參數
@app.route('/profile/<user_name>/')
def profile(user_name):
other_function()
# do more stuff
def other_function():
print request.args