我正在创建简单的代码编辑器,可以在其中运行python代码,并显示输出和错误消息。目前我可以运行python代码,但问题是输出显示在开发人员工具的控制台中。我希望将输出和错误消息传递给DOM元素,或者作为字符串传递给JS脚本 <script type="text/python">
from browser import d
出于某种原因,该命令的字符串提供了内存引用,而不是本例中查找的简单“pwd Command is (<tests/olv/olv/install/auto_ovirt_st_setup.InstallTestinstance at 0xec118b4c>, 'pwd') 记录的代码 def run_command_checking_exit_code(*comma