def test4(): from requests.utils import get_netrc_auth url = "http://www.126.com" print get_netrc_auth(url)