相关疑难解决方法(0)

如何使用Python对字符串进行编码和解码以在URL中使用?

我有一个像这样的字符串:

String A: [ 12234_1_Hello'World_34433_22acb_4554344_accCC44 ]
Run Code Online (Sandbox Code Playgroud)

我想加密字符串A以在干净的URL中使用.这样的事情:

String B: [ cYdfkeYss4543423sdfHsaaZ ]
Run Code Online (Sandbox Code Playgroud)

python中是否有编码API,给定字符串A,它返回String B?在python中是否有解码API,给定String B,它返回String A?

python string hash urlencode clean-urls

4
推荐指数
5
解决办法
2万
查看次数

标签 统计

clean-urls ×1

hash ×1

python ×1

string ×1

urlencode ×1