好处:如可以方便的直接将字符串形式的list,tuple转换成Python 中的list,tuple。 具体见参考资料。 参考资料 Be careful with exec and eval in Python 转载于:https://www.cnblogs.com/binwone/p/6105578.html