初学python - 字典
字符串转为字典
import ast
line=input()
linedict=ast.literal_eval(line)
遍历字典
for key in linedict: value=linedict[key]
...................................................
字符串转为字典
import ast
line=input()
linedict=ast.literal_eval(line)
遍历字典
for key in linedict: value=linedict[key]