Discuss / Python / 本期练习两种实现

本期练习两种实现

Topic source

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

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


  • 1

Reply