eval把字符串转换为原来的数据类型
字符串--》布尔值
# s = 'True'# print(type(s), type(eval(s)))字符串--》字典s = '{"age": 18}'print(type(s), type(eval(s)))