pyodide在浏览器中运行Python虚拟机执行代码
代码语言:html
所属分类:其他
代码描述:pyodide在浏览器中运行Python虚拟机执行代码
代码标签: pyodide 浏览器 运行 Python 虚拟机 执行 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html>
<html>
<head>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/pyodide.js"></script>
</head>
<body>
<p>
You can execute any Python code. Just enter something in the box below and
click the button.
</p>
<input id="code" value="sum([1, 2, 3, 4, 5])" />
<button onclick="evaluatePython()">Run</button>
<br />
<br .........完整代码请登录后点击上方下载按钮下载查看
网友评论0