Python 官方文档:入门教程 => 点击学习
show_python.html <!DOCTYPE html> <html> <head> <meta charset="gb2312"> <title>P
<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<title>Python draw flowers</title>
<script language="javascript">
function exec1 (command) {
var ws = new ActiveXObject("WScript.shell");
ws.exec(command);
}
</script>
</head>
<body>
turtle 画一朵花 <a href="/python/draw_flower1.py" target="show"> 源代码 </a>
<input type="button" value="运行 python" οnclick="exec1('D:\\python27\\pythonw.exe D:/python/draw_flower1.py')" />
<br/>
turtle 画一朵玫瑰花 <a href="/python/draw_rose1.py" target="show"> 源代码 </a>
<input type="button" value="运行 python" οnclick="exec1('D:\\python27\\pythonw.exe D:/python/draw_rose1.py')" />
<br/>
turtle 画一朵西兰花 <a href="/python/draw_xilan1.py" target="show"> 源代码 </a>
<input type="button" value="运行 python" οnclick="exec1('D:\\python27\\pythonw.exe D:/python/draw_xilan1.py')" />
<br/>
<iframe name="show" id="show" width="800" height="500"/>
</body>
</html>
draw_flower1.py , draw_rose1.py , draw_xilan1.py 已打包成 test3.zip
下载地址 Http://download.csdn.net/download/belldeep/10267837
--结束END--
本文标题: python : html 调用本地py
本文链接: https://www.lsjlt.com/news/190538.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0