- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5-22.py
More file actions
Latest commit
19 lines (17 loc) · 419 Bytes
/
Copy path5-22.py
File metadata and controls
19 lines (17 loc) · 419 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
importrandom
teachers=['11','22','33','44','55','66','77','88']
random.shuffle(teachers)
office1=teachers[:2]
office2=teachers[2:4]
office3=teachers[4:6]
office=[office1,office2,office3]
random.choice(office).append(teachers[6])
random.choice(office).append(teachers[7])
#输出
i=1
forroominoffice:
print("办公室%d"%i)
forteacherNameinroom:
print(teacherName)
print('-'*20)
i+=1