题解 | #姓名与学号#

姓名与学号

https://www.nowcoder.com/practice/ab68195587de46c59e2d327a4942d345

import sys

my_dict_1 = {'name':'Niuniu','Student ID':1}
my_dict_2 = {'name':'Niumei','Student ID':2}
my_dict_3 = {'name':'Niu Ke Le','Student ID':3}
dict_list = []
dict_list.append(my_dict_1)
dict_list.append(my_dict_2)
dict_list.append(my_dict_3)
for i in dict_list:
     print(f"{i['name']}'s student id is {i['Student ID']}.")

全部评论

相关推荐

饿魔:看到在线简历了吧
点赞 评论 收藏
分享
11-10 21:00
门头沟学院 Java
程序员牛肉:没啥必要了,3月末就开暑期实习了,你现在找还不一定能找到。看你啥学历了。 双非基本代表想进好公司无望了。211的话,现在继续沉淀,零日常实习参加暑期其实也压力不太大
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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