Discuss / Python / 作业

作业

Topic source

微尘初心

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

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

for name in L:

print('hello, %s!' % name)

执行该脚本,但出错了,为什么呢?

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

for n in L:

    print('Hello,',n,'!')


  • 1

Reply