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

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

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

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

 
posted @ 2022-10-19 13:06  y夏末y  阅读(537)  评论(0编辑  收藏  举报