摘要: 一.字符串的基本操作 1 #字符串的基本操作 2 s = "hello,worlod" 3 #字符串查找 4 print(s.find("lo")) 5 print(s.index("lo")) 6 7 print(s.rfind("lo")) 8 print(s.rindex("lo")) 9 1 阅读全文
posted @ 2020-11-28 09:25 心友 阅读(113) 评论(0) 推荐(0)