在flask中可以这样获取get查询的参数,但是在bottle文档中没有看到相关的方法。
from flask import Flask,request
app = Flask(__name__)
@app.route('/')
def hello():
return {request.args.get('abc')}
此时访问http://127.0.0.1:8000/?abc=hello将得到{"hello"}
在php中可以这样
<?php
$func =$_GET['func'];echo $func;
?>
http://127.0.0.1/temp.php?fun...
在bottle中该怎么做?如果用golang怎么写?用aardio怎么写?谢谢!
使用
request.query.getall()