根据这个答案:str='foo%20%5B12%5D'编码foo [12]: %20 is space %5B is '[' and %5D is ']' 这叫做百分比编码并用于对url参数值中的特殊字符进行编码。