题解 | 发送offer

发送offer

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

offer_list = ['Allen','Tom']        # 生成列表
for i in offer_list:                # for循环遍历取值,依次输出
    print(f"{i}, you have passed our interview and will soon become a member of our company.")
offer_list[1] = 'Andy'              # 利用下标修改列表值
for i in offer_list:                # for循环遍历取值,依次输出
    print(f"{i}, welcome to join us!")

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务