是否有相当于curl -u username
的 pycurl 可以让 Python 提示我输入密码?
pycurl does not have a feature where it will prompt for a password.
However, your program can issue the request without credentials and if the response is 401 perform the password prompt using facility such as the getpass standard library module.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.