📜  leer fichero de texto con columnas como diccionario python 代码示例

📅  最后修改于: 2022-03-11 14:46:11.775000             🧑  作者: Mango

代码示例2
d = {}
with open("file.txt") as f:
    for line in f:
       (key, val) = line.split()
       d[int(key)] = val