不要滥用eval 在开发时千万不要使用eval直接转换input的结果 __import__('os').system('ls') 等价代码 import os os.system("终端命令") 执行成功,返回执行失败,返回错误信息