2015-02-27から1日間の記事一覧

【Python】【Bottle】 Query Variables

■Query Variablesクエリパラメータの指定はrequest.query.文字列で指定可能。# coding:utf-8from bottle import route, request, response, template@route('/test')def test(): no = request.query.luckyno or 0 return template('Lucky No.{{no}}', no=no)…