在此插入代码
L = ['Bart', 'Lisa', 'Adam'] for name in L: print('hello,%s' % name+'!')
i = 0 while i < len(L): print('hello,%s' % L[i] + '!') i+=
在此插入代码 1
Sign in to make a reply
傻哥1991
-- coding:utf-8 --
for
L = ['Bart', 'Lisa', 'Adam'] for name in L: print('hello,%s' % name+'!')
逗号有间隔,加号没有
while
i = 0 while i < len(L): print('hello,%s' % L[i] + '!') i+=