Discuss / Python / 作业

作业

Topic source

傻哥1991

#1 Created at ... [Delete] [Delete and Lock User]
在此插入代码

-- 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+=

在此插入代码
1

  • 1

Reply