Discuss / Python / 我都不知道自己怎么写的.求指点更简单的方法

我都不知道自己怎么写的.求指点更简单的方法

Topic source
在此插入代码

L = ['bart','lisa','adam']
for x in L:
    print('hello',x)
print('#######################################')

a = 0
l = len(L)
while a<l:
    a=a+1
    print('hello',L[a-1])

  • 1

Reply