L = ['Bart', 'Lisa', 'Adam'] #for循环练习 for name in L: print('Hello,%s!'% name) n = 2 #while循环练习 while n >= 0: print ('Hello,%s' % L[n],'!') n = n - 1 w = 2 #死循环练习 while w > 0: print ('Hello,%s' % L[w],'!') n = n + 1
Sign in to make a reply
承德沈楠