Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def split_(s,separatore):
- l = []
- pivot = 0
- len_sep = len(separatore)
- for i in range(len(s)):
- print(s[i:len_sep + i])
- if s[i:len_sep + i] == separatore:
- l.append(s[pivot:i])
- pivot = i + len_sep
- l.append(s[pivot:])
- return l
Advertisement
Add Comment
Please, Sign In to add comment