Discuss / Python / for..in循环

for..in循环

Topic source

沈智承SZC

#1 Created at ... [Delete] [Delete and Lock User]
# -*- coding: utf-8 -*-
L = ['Bart', 'Lisa', 'Adam']
for name in L:
    print('Hello,',name,'!')

  • 1

Reply