#8个人随机分到3个办公室
import random
office=[[],[],[]]
names=["A","B","C","D","E","F","G","H"]
for name in names:
index=random.randint(0,2)
office[index].append(name)
i=1
for office in office:
print("办公室%d 的人数为:%d"%(i,len(office)))
i+=1
for name in office:
print("%s"%name,end="t")
print("n")
print("-"*20)



