tornado application里都有哪些參數
1 回答

至尊寶的傳說
TA貢獻1789條經驗 獲得超10個贊
在BaseHandler加個input函數獲取所有的值并轉換成storage:
from Storage import storage
def input(elf):
i = storage()
args = self.request.arguments
for a in args:
i[a] = self.get_argument(a)
return i
i["files"], i["path"]這些再另作處理下。就可以用self.input()獲取所有GET和POST的值了。
- 1 回答
- 0 關注
- 896 瀏覽
添加回答
舉報
0/150
提交
取消