# -*- coding: GBK -*-
magicians = ['alice', 'david', 'carolina']
for magician in magicians: print(magician.title() + ", that was a great trick!")

输出为:

Alice, that was a great trick!
David, that was a great trick!
Carolina, that was a great trick!

  

05-19 12:58