in、find、rfind、index、rindex

都是用于判断字符串a是否在字符串b里面

find没有找到会返回-1

index没找到会报错

posted @ 2020-08-03 09:58  6+0  阅读(93)  评论(0编辑  收藏  举报