作者:Al Sweigart
译者:豌豆花下猫@Python猫
英文:https://inventwithpython.com/blog/2022/10/30/17-online-python-ides-and-interactive-shellsrepls
转载请保留作者及译者信息!
<!doctype html>
<html>
<head>
<script type="text/javascript" src="brython.js"></script>
<script type="text/javascript" src="brython_stdlib.js"></script>
<style>
.codearea {
background-color:#000;
color:#fff;
font-family:'Oxygen Mono', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', monospace;
font-size:14px;
overflow:auto
}
</style>
</head>
<body onload=brython({"debug":1}) ><!-- remove the 1 to leave debug mode -->
<noscript>Please enable Javascript to view this page correctly</noscript>
<textarea id="code" class="codearea" rows="20" cols="100"></textarea>
<script type="text/python3">
from interpreter import Interpreter
# Start an interactive interpreter in textarea with id "code"
Interpreter("code")
</script>
</body>
</html>