offer_list=['Allen','Tom'] for i in offer_list: print('{}, you have passed our interview and will soon become a member of our company.'.format(i)) offer_list=['Allen','Andy'] for j in offer_list: print('{}, welcome to join us!'.format(j)) # 我把Allen看成Alien,另逗号和you之间隔一个空格