-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRandomPhoneNumberCreator.py
43 lines (31 loc) · 1.33 KB
/
RandomPhoneNumberCreator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import random
import os
os.system("title 手机号码随机生成器 版权所有 快速的飓风. © 2020")
os.system("color F0")
beginner = ['134', '135', '136', '137', '138', '139', '147', '150', '151', '152', '157', '158', '159', '182', '187', '188', '130', '131', '132', '155', '156', '185', '186', '133', '153', '180', '189']
while True:
count = input("请输入需要的手机号码个数\n>>")
if count.isdigit():
print("\n")
for i in range(0, int(count), 1):
print("[" + str(i + 1) + "] " + beginner[random.randint(0, 26)], end = "")
for j in range(0, 8, 1):
print(random.randint(0, 9), end = "")
print("\n")
print("生成完毕!")
while True:
choice = str(input("是否继续使用?\n[Y] 是\n[N] 否\n>>"))
if choice == "y" or choice == "Y":
print("\n")
break
if choice == "n" or choice == "N":
print("\n")
print("感谢使用,再见!")
input()
exit(0)
else:
print("您的输入有误,请检查后重新输入!")
continue
else:
print("您的输入有误,请检查后重新输入!")
continue