Comprendre un morceau de code python
Bonjour,
je suis débutant et
je voudrais comprendre ce que la variable tens, units obtiennent comme valeur de ce code :
Code:
1 2 3 4
| i=int(sys.argv[1])
tens = ((i % 100) // 10)*10 # ?
units = (i % 10) # ?
print(tens, units) |
et aussi pourquoi att>9 et ce que la variable temp comprend :
Code:
1 2 3 4 5 6 7 8 9 10
| def Pin_init_affichage(att): #Handeling of the process that take care of the led system on the front side
t=0
print("############### Pin order ############### ")
for t in range (0,5):
temp = att # ?
if (att>9): # ?
temp = ((i % 100) // 10) + 9 # ?
print("In led list get the x th --------> " + str (temp))
print(Main_List[temp][t]) |
MERCI de votre aide