【发布时间】:2013-08-10 19:28:28
【问题描述】:
我正在编写一个 python webapp(在 Google AppEngine 上,使用 webob),它应该处理一个包含地址列表的表单。
为了简化,假设表单包含以下输入:
<input type="hidden" name="address[]" value="1" />
<input type="hidden" name="address[]" value="2" />
<input type="hidden" name="address[]" value="3" />
<input type="hidden" name="address[]" value="4" />
现在,Rails\PHP 会将其解析为包含列表 [1,2,3,4] 的单个“地址”值。 有没有简单的方法在 Python 中做到这一点?
【问题讨论】:
标签: python google-app-engine webob