IT虾米网

生成手机号码Python代码

flyfish 2018年06月24日 编程语言 1546 0

[Python]代码    

# _*_ coding:utf-8 _*_ 
#xiaohei.python.seo.call.me:) 
#win+python2.7.x 
 
number = "1350571" 
 
with open("hm.txt","w") as f: 
	for i in range(0001,9999): 
		ok = number + "{:0>4d}".format(i) + "\n" 
		f.write(ok)
评论关闭
IT虾米网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!