#mydict={name1:[pack1,pack2],name2:[pack3,pack4]}
mydict={}
while True:
select=input('please select 1 or 2')
if select=='1':
name=input('please input name ')
packet=input ('please input your packet')
if name in mydict:
mydict[name ].append(packet)
else:
mydict[name]=[packet]
elif select =='2':
name=input ('please your name ')
if name in mydict:
while len(mydict )>0:
print ('packet %s find ,please check'%mydict[name].pop(0))
else:
del mydict[name]
else:
print('no packet')
else:
break
小型快递系统
最新推荐文章于 2023-12-04 09:47:54 发布