【发布时间】:2010-10-27 02:56:30
【问题描述】:
我不断收到这个:
DeprecationWarning: integer argument expected, got float
如何让这条消息消失?有没有办法避免 Python 中的警告?
【问题讨论】:
-
当没有其他工作时:
$ pip install shutup。然后在代码的顶部import shutup;shutup.please()。这将禁用所有警告。
标签: python warnings deprecated