我不断收到这个:
DeprecationWarning: integer argument expected, got float
如何让这条消息消失?有没有办法避免 Python 中的警告?
最佳答案
你应该只是修复你的代码,但以防万一,
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
https://stackoverflow.com/questions/879173/