【发布时间】:2021-04-26 21:22:16
【问题描述】:
我有以下python 代码:
from flask import Flask
from flask import request
import requests
@app.route("/get_city")
get_city():
to_echo = request.args.get("city", "")
response = "{}".format(to_echo)
return response
@app.route('/v1/api/check_current_weather_by_city')
def check_current_weather_by_city():
city = get_city()
将值“Tel+aviv”放入变量city 的正确方法是什么?当前的实现不起作用
【问题讨论】: