一、源码
# 前三位数字
prefix = '134'
# 后两位数字
suffix = '47'
# 打开文件
with open('phone_numbers.txt', 'w') as f:
# 遍历中间四位数字
for i in range(1000000):
middle = str(i).zfill(6)
phone_number = prefix + middle + suffix
f.write(phone_number + 'n')
二·、实例
13499995447
13499995547
13499995647
13499995747
13499995847
13499995947
13499996047
13499996147
13499996247
13499996347
13499996447
13499996547
13499996647
13499996747
13499996847
13499996947
13499997047
13499997147
13499997247
13499997347
13499997447
13499997547
13499997647
13499997747
13499997847
13499997947
13499998047
13499998147
13499998247
13499998347
13499998447
13499998547
13499998647
13499998747
13499998847
13499998947
13499999047
13499999147
13499999247
13499999347
13499999447
13499999547
13499999647
13499999747
13499999847
13499999947
三、Python脚本下载链接
https://pan.iculture.cc/s/1Ly5Ty 密码lovepig