Discuss / Python / 作业

作业

Topic source

原么

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

coding=utf-8

l = ['Bart','Lisa','Adam']
for i in l :
print('hello,'+i+'!')

print('hello,'+i+'!') 请问为啥加号代替i前后的逗号也可以?

for i in l: print('hello',i)


  • 1

Reply