Python eval函数

eval(str [,globals [,locals ]]) – 函数将字符串str当成有效Python表达式来求值,并返回计算结果。

posted @ 2016-02-10 11:41  Jeff_blog  阅读(92)  评论(0编辑  收藏  举报