Skip to content

Commit d5fa833

Browse files
committed
finish 0001
1 parent 53a8c52 commit d5fa833

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

friday/0001/0001.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
__author__ = 'friday'
2+
import random
3+
4+
def creat_num(num,long):
5+
str = 'qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*_+'
6+
b = []
7+
for i in range(num):
8+
a = ''
9+
for j in range(long):
10+
a += random.choice(str)
11+
b.append(a)
12+
for i in range(len(b)):
13+
print(b[i])
14+
15+
if __name__ == '__main__':
16+
creat_num(200,10)

friday/0001/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
随机生成两百个十位的优惠码

0 commit comments

Comments
 (0)