"quote" is the wrong method for this. It is used specifically to remove special characters from a string, which is what you are seeing.
If you are trying to build url objects, urllib.parse.urlparse(urlValue) would be the method you want.
As someone new to python- the urllib libraries are pretty low API. Assuming you're trying to make network connections, I would strongly recommend looking at the "requests" library from pypi, which is a much simpler user interface.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…