您当前的位置: 首页 > 
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决AttributeError: module 'string' has no attribute 'find'

一个处女座的程序猿 发布时间:2019-01-30 21:08:03 ,浏览量:0

成功解决AttributeError: module 'string' has no attribute 'find'

 

 

目录

解决问题

解决思路

解决方法

 

 

 

解决问题

AttributeError: module 'string' has no attribute 'find'

 

 

解决思路

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

 

 

 

 

解决方法

因为python版本升级,函数名称已有改变!只需要将string改为str即可!

if str.find(big_string, substring) != -1:
    return substring

 

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0885s