1 Star 0 Fork 0

bitterteaer/python-online-programming

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
bitterteaer 提交于 2022-11-24 21:11 . first commit
from pywebio.input import *
from pywebio.output import put_text
from os import system, remove, popen
if __name__ == "__main__":
try:
code = textarea('Code Edit Online', code={'mode': "python", 'theme': 'darcula'},
value='# input your code here\n')
with open('temp.py', 'w', encoding='utf-8') as f:
f.write(code)
result = popen('python temp.py').read()
put_text(result)
except Exception as e:
put_text('运行:错误 at %s' % e)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bitterteaer/python-online-programming.git
git@gitee.com:bitterteaer/python-online-programming.git
bitterteaer
python-online-programming
python-online-programming
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385