You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
383 B

def triPacket(lPkt):
if type(lPkt)!=list:
print('pas liste')
return
if len(lPkt)==0:
print('vide')
return
if len(lPkt)==1:
triPacket(lPkt[0])
return
if len(lPkt)==3 and type(lPkt[0])==str:
print(lPkt[0],int(lPkt[1]),int(lPkt[2]))
return
else:
for i in lPkt:
triPacket(i)