月关宝盒
In [1]: '%2Fkns%2Fbrief%2Fbrief.aspx%3Fcurpage%3D17%26RecordsPerPage%3D20%26QueryID%3D0%26'.lower()
Out[1]: '%2fkns%2fbrief%2fbrief.aspx%3fcurpage%3d17%26recordsperpage%3d20%26queryid%3d0%26'In [2]: import re
In [3]: regex = re.compile(r'%\d{1}[A-Z]{1}')
In [4]: _ = '%2Fkns%2Fbrief%2Fbrief.aspx%3Fcurpage%3D17%26RecordsPerPage%3D20%26QueryID%3D0%26'In [5]: res = regex.findall(_)
In [6]: res
Out[6]: ['%2F', '%2F', '%2F', '%3F', '%3D', '%3D', '%3D']
In [7]: for i in res:
...: _ = _.replace(i, i.lower())
...:
In [8]: _
Out[8]: '%2fkns%2fbrief%2fbrief.aspx%3fcurpage%3d17%26RecordsPerPage%3d20%26QueryID%3d0%26'