粘贴到sublime里面
让sublime 处理
然后在保存为TXT文件即可
将字符串转成字典 输出
import sys
path="C:\\Users\Administrator\\Desktop\\tiku20211101.txt"
# 读取文件里面每一行 eval 字符串转字典
with open(path,'r') as f:
for line in f:
str_to_dict= eval(line)
print(str_to_dict['q'])
print(str_to_dict['a'])
str_to_dict={}