题解 | #生成字典#
生成字典
https://www.nowcoder.com/practice/f3b6bfd4a411431b96f08bd153a51659
import sys name = input().split() langu = input().split() tuple1 = zip(name, langu) # zip是把列表打包为元组 print(dict(tuple1)) # 又把元组转化为字典 for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1]))