#coding:utf-8with open('username.txt','wb') as f: for i in range(00000, 99999): line = str('w' + '%05d' % i) + '\n' f.write(line)f.close()