【发布时间】:2021-11-12 15:38:42
【问题描述】:
我有这个代码:
import nsepython
import warnings
warnings.filterwarnings("ignore")
print(nse_quote_ltp("RELIANCE"))
此代码在打印结果之前发出此警告:
DEBUG:urllib3.connectionpool:开始新的HTTPS连接(1): www.nseindia.com:443 DEBUG:urllib3.connectionpool:https://www.nseindia.com:443"GET /api/equity-stockIndices?index=SECURITIES%20IN%20F%26O HTTP/1.1" 200 26695 调试:urllib3.connectionpool:开始新的 HTTPS 连接(1): www.nseindia.com:443 DEBUG:urllib3.connectionpool:https://www.nseindia.com:443"GET /api/quote-derivative?symbol=RELIANCE HTTP/1.1" 200 38950 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.nseindia.com:443 DEBUG:urllib3.connectionpool:https://www.nseindia.com:443"GET /api/equity-stockIndices?index=SECURITIES%20IN%20F%26O HTTP/1.1" 200 26695 调试:urllib3.connectionpool:开始新的 HTTPS 连接(1): www.nseindia.com:443 DEBUG:urllib3.connectionpool:https://www.nseindia.com:443"GET /api/quote-derivative?symbol=RELIANCE HTTP/1.1" 200 38950
2387
如何关闭此警告?
【问题讨论】: