Discuss / Python / 循环练习

循环练习

Topic source

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

打印名字

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

for i in L:

    print('hello,',i,'!')

死循环

while 1>0:

    print('hello')


  • 1

Reply