i = 0 L = ['Bart','Lisa','Adam'] #for...in循环实现 for name in L: print('Hello,%s'%name) #while循环实现 while i < 3: print('Hello,%s'%L[i]) i += 1
Sign in to make a reply
霸下
i = 0 L = ['Bart','Lisa','Adam'] #for...in循环实现 for name in L: print('Hello,%s'%name) #while循环实现 while i < 3: print('Hello,%s'%L[i]) i += 1