标签: bottle
例如,URL:
http://localhost:8080/company?a=1
我怎么知道URL是否包含参数a。
答案 0 :(得分:2)
以下是您访问a的方式:
a
@route('/company') def company(): if bottle.request.params.get('a') is not None: # param "a" was present in the URI's query string