I am trying to get the url parameters from a flask view:
www.domain.com/?f=x**2
How do I get x**2
from the url
in a Flask view?
You can retrieve query string variables using
request.args.get('myParam')
or
request.args['myParam']
Where myParam
is the variable in the query string you're trying to receive.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.