python的exec

exec "一条python语句"

这样会执行python 语句。用于执行储存在字符串或文件中的Python语句。

当然 也可以 用 exec(str)这种方式,

总之一句话,尽量别用

to be continue, if i have time

posted on 2013-10-28 16:33  代码王子  阅读(313)  评论(0编辑  收藏  举报

导航