摘要: 字符串了解部分 find,rfind , index , rindex , count find 找索引值 x = 'qwe ras df' res = x.find('ras') #对应的是索引的值2,如果找没有的返回值为-1 x.find('ras',0,9) #在指定范围内查找 x.rfind 阅读全文
posted @ 2020-07-14 20:55 feiguoguobokeyuan 阅读(106) 评论(0) 推荐(0) 编辑