摘要: ``` # pattern支持字符或者字符串 def my_split(string, pattern): ret = [] len_pattern = len(pattern) while True: index = string.find(pattern) if index == -1: ret.append(st... 阅读全文
posted @ 2019-05-27 20:39 Rocin 阅读(673) 评论(0) 推荐(0) 编辑