I feel like I'm missing something obvious here!
seq = {'a': ['1'], 'aa': ['2'], 'aaa': ['3'], 'aaaa': ['4'], 'aaaaa': ['5']}
for s in seq:
print(s)
outputs:
a
aa
aaaa
aaaaa
aaa
Whereas surely it should output:
a
aa
aaa
aaaa
aaaaa
What's going wrong here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…