# coding=utf-8 from pandas import DataFrame import sys input_file = sys.argv[1] # 输入文件 output_file = sys.argv[2] # 输出文件 dict_data = {} with open(input_file, 'r', encoding="utf-8") as df: for line in df: line = line.replace(" ", ',').split(',') a= line[0] b = line