python url编码转换
转载https://www.cnblogs.com/whx2008/p/12633661.html
from urllib.parse import quote def convert(content): return quote(content) if __name__ == "__main__": content = input("请输入待转换的内容:") target = convert(content) print(f"\n{target}\n")
转载https://www.cnblogs.com/whx2008/p/12633661.html
from urllib.parse import quote def convert(content): return quote(content) if __name__ == "__main__": content = input("请输入待转换的内容:") target = convert(content) print(f"\n{target}\n")