最近做个GUI小工具,在for循环里使用了elif语句,当其中一个elif条件使用true时,后面的elif不再执行。 arg=[88,66,66,999] for x in arg: a=len(str(x)) if a