multidict一个有序词典,每个键可以有多个值.将方法getall,getone,mixed,add和dict_of_lists添加到常规词典界面中.请参阅Multidict和pyramid.interfaces.IMultiDict.
multidict An ordered dictionary that can have multiple values for each key. Adds the methods getall, getone, mixed, add and dict_of_lists to the normal dictionary interface. See Multidict and pyramid.interfaces.IMultiDict.
所以只需致电:
request.params.getall('c')
这篇关于如何从Pylons中的URL获取具有相同名称的多个参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
阿里云证书,YYDS!