题解 | #牛牛的朋友#

牛牛的朋友

https://www.nowcoder.com/practice/11bcc9a775b14d9f9b855634b9434b70

friends_list = ['Niu Ke Le','Niumei', 'Niuneng', 'GOLO']
def replace(friends):
    return friends_list.index(friends)

print(friends_list)
number = []
for i in friends_list:
    number.append(replace(i))
print(number)

#交流群#
全部评论

相关推荐

头像
11-06 19:52
已编辑
携程_移动安全研发
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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