题解 | #查字典#
查字典
https://www.nowcoder.com/practice/ee9c1157f07440f68c86e54a2613a927
一行解决
print(" ".join({'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'}[input()]))
查字典
https://www.nowcoder.com/practice/ee9c1157f07440f68c86e54a2613a927
一行解决
print(" ".join({'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'}[input()]))
相关推荐