首页 > 编程语言 >Python报AttributeError: module 'string' has no attribute 'join'解决方法

Python报AttributeError: module 'string' has no attribute 'join'解决方法

时间:2022-10-19 13:25:33浏览次数:73  
标签:join string no attribute module AttributeError

 报:AttributeError: module 'string' has no attribute 'join'

 属性错误:模块“string”没有属性“join”

 解决方法:因为python版本升级,函数名称已有改变,只需要将string改为str即可。

 

标签:join,string,no,attribute,module,AttributeError
From: https://www.cnblogs.com/yy-123/p/16805890.html

相关文章