Python-AttributeError-module-string-has-no-attribute-atoiJAY.LIN 收录于 Python 2023-10-20 约 104 字 预计阅读 1 分钟 目录 Python AttributeError: module ‘string’ has no attribute ‘atoi’python2 中可以用string.atoi 在python3中会报错替换的方案是 string.atoi(your_str)替换为 int(your_str)这个代码python2和python3都可以运行.Please enable JavaScript to view the comments powered by Giscus.