Discuss / Python / 练习

练习

Topic source

霸下

#1 Created at ... [Delete] [Delete and Lock User]

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


  • 1

Reply