python中的eval 和 exec 和 execfile
摘要:
#eval 函数用来计算python表达式并返回结果#exec 可以执行动态的python代码,不返回结果 def hello(): print("hello world") eval("hello()") 输出 hello world exec("hello()") 输出 hello world# 阅读全文
posted @ 2020-11-27 22:12 思此狂 阅读(351) 评论(0) 推荐(0)
浙公网安备 33010602011771号