题解 | #字典新增#

字典新增

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

input1 = input('')
input2 = input('')
dict1 = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'}
dict1.update({input1:input2})
print(dict1)

全部评论

相关推荐

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

创作者周榜

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