eval把字符串转换为原来的数据类型
字符串--》布尔值
# s = ‘True‘# print(type(s), type(eval(s)))字符串--》字典s = ‘{"age": 18}‘print(type(s), type(eval(s)))
eval转换
原文:https://www.cnblogs.com/albeexu/p/12951341.html