要求自己实现split函数
def mySplit(str,delimiter): result = [] start = 0 pos = str.find(delimiter, start) while pos>0: result.append(str[start:pos]) start = pos + 1 pos = str.find(delimiter, start) print pos if start<len(str): result.append(str[start:]) return result