Discuss / Python / 作业

作业

Topic source
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

L = ['Bart', 'Lisa', 'Adam']
for name in L:
    print('Hello,%s'%name)
print('\n')
count=0
while count<len(L):
    print('Hello,%s'%L[count])
    count=count+1
在此插入代码

  • 1

Reply