Web开发中怎么处理多参数
- 
请教一下, 在web开发中,只带一个参数的时候官方文档中是这样写: <br />@http.route('/say_hello', type="http") <br /> def say_hello(self, name): <br /> return "<h1>Hello %s</h1>" % name <br />
 这样可以在say_hello?name=myname
 直接打印出参数来。
 但是如果我要传入多个参数的时候,要怎么写呢?
 希望得到各位的帮助! 谢谢
- 
第一次没写全,shelly已经补充了下,另外一种就是通过post的方式,直接 <br />    @http.route('/say_hello', type="http") <br />    def say_hello(self, **post): <br />        name = post['name']<br />        age = post['age']<br />
- 
[quote author=Joshua link=topic=16258.msg27561#msg27561 date=1393983744] 
 第一次没写全,shelly已经补充了下,另外一种就是通过post的方式,直接<br />    @http.route('/say_hello', type="http") <br />    def say_hello(self, **post): <br />        name = post['name']<br />        age = post['age']<br />
 [/quote]
 请问怎么在外部调用/say_hello,相当于一个接口??


