摘要: 方法: 1.center: >>>:center(20,'_') 2.count:查找指定字符或字符串在字符串中出现的次数 >>>:var='abcdeff' >>>:print(var.count('f')) 结果:2 3.str.endswith() 4.startwith() 5.find(‘ 阅读全文
posted @ 2018-03-06 10:32 TimeTree 阅读(142) 评论(0) 推荐(0) 编辑