Discuss / Python / 作业

作业

Topic source
# -*- coding: utf-8 -*-

L = ['Bart', 'Lisa', 'Adam']
#for...infor l in L:
    print(l)

#while
X = 0
while X < 3:
    print(L[X])
    X += 1

#死循环
X = 1
while(X):
    print(X)


  • 1

Reply