Python3: urllib.parse.quote Example
Syntax
quote(string)
urllib.parse.quote Example
from urllib.parse import quote
# String
txt = "==++rrr++fff***///12"
# Replaces special characters in string
cv = quote(txt)
# Print Result
print(cv)
Output:
%3D%3D%2B%2Brrr%2B%2Bfff%2A%2A%2A///12