Discuss / Python / 交作业

交作业

Topic source

水滴竹沙

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

1

L = ['Bart', 'Lisa', 'Adam'] for name in L: print('hello,%s!'%name)

2

L = ['Bart', 'Lisa', 'Adam'] n=0 while n<len(L): name=L[n] n=n+1 print('hello,%s!'%name)


  • 1

Reply