题解 | #统计每个学校的答过题的用户的平均答题数#

派对名单

http://www.nowcoder.com/practice/df1635c672fc407a84838101fc95058f

niukele的位置用list.index()获取

for name in guest_list:
    print('%s, do you want to come to my celebration party?'%name)
print()
guest_list.insert(0, 'GURR')
guest_list.insert(guest_list.index('Niu Ke Le'), 'Niumei')
guest_list.append('LOLO')
for name in guest_list:
    print('%s, thank you for coming to my celebration party!'%name)
全部评论

相关推荐

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

创作者周榜

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