for...in
for x in L: print('Hello, %s!' % x)
while
n = 0 while n < len(L): print('Hello, %s!' % L[n]) n += 1
您好,请问n+=1这个是什么意思了?
n+=1就是n=n+1
Sign in to make a reply
vvvhyx
for...in
while