urlencode an array of values

后端 未结 5 1680
半阙折子戏
半阙折子戏 2020-12-13 08:25

I\'m trying to urlencode an dictionary in python with urllib.urlencode. The problem is, I have to encode an array.

The result needs to be:

criterias%         


        
5条回答
  •  醉话见心
    2020-12-13 09:14

    as aws api defines its get url: params.0=foo¶ms.1=bar

    however, the disadvantage is that you need to write code to encode and decode by your own, the result is: params=[foo, bar]

提交回复
热议问题