Discuss / Python / 日常作业

日常作业

Topic source

for循环,注意Print前缩进

L = ['Bart', 'Lisa', 'Adam'] for name in L: print("Hello",name,!')

while循环

L = ['Bart', 'Lisa', 'Adam'] n=0 while n < len(L): print("Hello",L[n],'!') n=n+1


  • 1

Reply