# 请利用循环依次对list中的每个名字打印出Hello, xxx!: # -*- coding: utf-8 -*- names = ['Bart', 'Lisa', 'Adam'] for name in names: print("Hello", name, "!")