

这破玩意,吐血了,我完全看不到我自己的日志信息了,每秒刷几千条
网上搜都说加
import warnings warnings.filterwarnings('ignore') 或者用
python -W ignore ... 然鹅都没有什么卵用啊
1 hushao Oct 26, 2019 via iPhone 图挂了... |
3 hushao Oct 26, 2019 via iPhone python 调用 c ?在主程序里设置级别不行么? |
4 blueset Oct 27, 2019 这东西怕不是libpng直接输出到stderr里面的? 看了下Stack Overflow上面的讨论,看来改掉 /去掉metadata才是正道(?)。 引用自: https://www.google.com/search?q=libpng+warning+iccp+known+incorrect+srgb+profile |
5 luckyc Oct 29, 2019 ``` import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore",category=DeprecationWarning) import pymssql #需忽略警告的模块 print('Type your code here') ``` |