题解 | #发送offer#

发送offer

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

offer_list=['Allen', 'Tom']
for i in offer_list:
    if i=='Allen' or i=='Tom':
        print(i+", you have passed our interview and will soon become a member of our company.")

tom_index=offer_list.index("Tom")
offer_list[tom_index]="Andy"
for i in offer_list:
    if i=="Andy" or i=='Allen' :
        print(i+", welcome to join us!")
        
一定要注意标点符号,调试了三次,最后一次就是直接拷贝了题目的print内容
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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