I am a total novice at Python, and have come across a piece of code that confuses me.
ts, pkt2 = capPort2.wait(1, 45)[0]
The previous line confuses me. I understand the call to the function wait
with the two parameters, but what does the [0]
mean or do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…