Closed Cheneng closed 4 months ago
import urllib.parse # URL编码的字符串 encoded_str = "%E6%97%A5%E8%AF%AD%20-%20Japanese/%E5%85%89%E4%B9%8B.zip" # 使用urllib.parse.unquote解码 decoded_str = urllib.parse.unquote(encoded_str) print("原始编码字符串:", encoded_str) print("解码后的字符串:", decoded_str)
原始编码字符串: %E6%97%A5%E8%AF%AD%20-%20Japanese/%E5%85%89%E4%B9%8B.zip 解码后的字符串: 日语 - Japanese/光之.zip