python2 中可以用string.atoi 在python3中会报错
替换的方案是

string.atoi(your_str)

替换为

int(your_str)

这个代码python2和python3都可以运行.

相关文章:

  • 2021-10-09
  • 2021-09-09
  • 2021-10-09
  • 2021-12-13
  • 2021-06-06
  • 2021-07-27
  • 2021-05-07
  • 2022-01-23
猜你喜欢
  • 2021-11-14
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
相关资源
相似解决方案