I set password for mongodb, if password contains “\”,[pymongo.errors.OperationFailure: Authentication failed]. if remove the "\",Authentication success。python version is 2.7 and mongo version is 4.0.I have try any methods still not resovled.
enter image description here this is the error enter image description here this is the code of connect demo