摘要: #查询'''s = "汪峰的老婆不爱汪峰"#print(s.startswith("wangfeng")) #判断是否已wangfeng开头#print(s.endswith("123"))#print(s.count("132")) #计算字符出现的次数#print(s.find("老婆不"))# 阅读全文
posted @ 2019-06-09 16:54 Anlern 阅读(187) 评论(1) 推荐(0) 编辑