Merge branch 'master' of https://codefirst.iut.uca.fr/git/louis.dufour/Detection_d_intrusion
commit
03751ae545
@ -0,0 +1,16 @@
|
||||
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)
|
Loading…
Reference in new issue