All*_*ell 2 python while-loop
说我有以下循环:
i = 0 l = [0, 1, 2, 3] while i < len(l): if something_happens: l.append(something) i += 1
是否会在len(i)附加内容时更新while循环中评估的条件l?
len(i)
l
Dar*_*rio 14
是的,它会的.
归档时间:
16 年,9 月 前
查看次数:
4068 次
最近记录: