Discuss / Python / 练习题解答

练习题解答

Topic source

Sarthly

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

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

萌婶呀

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

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


  • 1

Reply