摘要: exec与eval函数的使用 一、exec函数 execute:翻译为“执行、履行”;exec函数在python中将字符串作为代码来执行。代码如下: # Author:张胜宝 exec ("print('hello,world')") 运行结果: F:\Anaconda3\python.exe D: 阅读全文
posted @ 2018-08-28 17:09 张胜宝 阅读(203) 评论(1) 推荐(0)