摘要: 如何查找一个字符串中特定的字符?find和index的差异? """ 如何查找一个字符串中特定的字符?find和index的差异? 用find和index方法: find: info = 'audhwkihkjidwj' print(info.find('w')) --输出:-1 index: in 阅读全文
posted @ 2020-05-12 23:38 扎小辫的胖虎 阅读(69) 评论(0) 推荐(0) 编辑