之前能运行的代码,现在运行的时候报下面错误。
Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
根据小伙伴的提示,原来是因为3.8版本对float类型的数据转int型的一个提示。
问题不大,我这里确实是要int类型的。
所以,我将数据全部加上了 int 的强制转换,然后就好了。
之前能运行的代码,现在运行的时候报下面错误。
Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
根据小伙伴的提示,原来是因为3.8版本对float类型的数据转int型的一个提示。
问题不大,我这里确实是要int类型的。
所以,我将数据全部加上了 int 的强制转换,然后就好了。