题解 | #发送offer#

发送offer

https://www.nowcoder.com/practice/66969869634b4142ac371684fcf89764

offer_list=['Allen','Tom']
new_list=offer_list.copy()#把offer_list复制给new_list
new_list[1]='Andy'#将new_list列表中的tom改成Andy
print("{}, you have passed our interview and will soon become a member of our company.".format(offer_list[0]))
print("{}, you have passed our interview and will soon become a member of our company.".format(offer_list[1]))
print("{}, welcome to join us!".format(offer_list[0]))
print("{}, welcome to join us!".format(new_list[1]))

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务