Discuss / Python / day4

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

for x in L:

    print('Hello,%s!'%x)

循环:#话说我按了ctrl+c,没停下来 吓死我了2333

n=1

while n>=1:

    n=n+1

    print('hi~%s!!'%n)


  • 1

Reply