Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- x = open(input('Your List-> '))
- count_all = 0
- pisah = 1000000 # di pisah menjadi...
- try:
- name = 1
- names = str(name)+'.txt'
- f = open(names,'a')
- count = 1
- for domain in x:
- try:
- count_all +=1
- f.write(domain)
- #print domain
- #print "{} ~ {} ~ {}".format(count_all, names, count)
- count +=1
- if count > pisah:
- name +=1
- names = str(name)+'.txt'
- print(names)
- f = open(names,'a')
- count = 1 # reset count
- except:
- print('Except Error2')
- except:
- print('Except')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement