python批量生成银行卡号

# -*- coding: utf-8 -*-
__author__ = 'Administrator'
__time__ = '2018-07-27 下午 2:38'

import string
import random
def phone_num(num):
 num_start = ['']
bank = []
#for i in range(17918000000,17918999999,1):
for i in range(6214850200000001,6214850200000501,1):
  bank.append(i)
  f=open('d:\BankCardNo.txt','w')

for i in bank:
     f.write(str(i) + "\n")

   #  print(str(i))
f.close()

 

你可能感兴趣的:(python)