Discuss / Python / 方案2 最后一个%号前不要有,号.

方案2 最后一个%号前不要有,号.

Topic source

报三春晖

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

-- coding: utf-8 --

L = ['Bart', 'Lisa', 'Adam'] a=0 while a<len(L): print('Hello,%s!' % L[a]) #注意后一个%号前不要有,号# a=a+1


  • 1

Reply