Discuss / Python / 交作业啦!

交作业啦!

Topic source

用for循环实习

for i in L: print ("Hello, %s!" %i)

用while循环实现:

n=0 while n<len(L): print('Hello, %s!' %L[n]) n=n+1


  • 1

Reply