Discuss / Python / 作业

作业

Topic source

L = ['Bart', 'Lisa', 'Adam']

n=0

while n<len(L):

    print('Hello,',L[n],'!')

    n=n+1

妈咪则

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

L = ['Bart', 'Lisa', 'Adam']

for x in L:

    print('Hello,{}'.format(x))


  • 1

Reply