python : html 调用本地python程序
2018-02-20 16:53
405 查看
show_python.html
<!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" onclick="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" onclick="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" onclick="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
相关文章推荐
- 通过Html网页调用本地安卓(android)app程序代码
- html中使用javascript调用本地程序(exe,doc等)
- html网页调用本地exe程序的实现方法
- html网页调用本地exe程序的实现方法
- html中使用javascript调用本地程序(exe、doc等)实现代码
- html网页调用本地exe程序的实现方法
- html中调用本地exe程序 打开文件或文件夹
- 本地windows跑Python程序调用Spark
- html中使用javascript调用本地程序(exe、doc等)实现代码
- 通过Html网页调用本地安卓app程序代码
- 【PythonDjango后台实例 第五章】Bootstrap3 在HTML页面中显示调用本地时间并动态显示
- Asp.Net 之 通过调用 WScript.Shell 启动本地 exe 程序时产生“ automation服务器不能创建对象 ”的错误
- 微信小程序调用本地接口或者其他接口方法
- Python是这样调用matlab程序的!
- python调用C++ 可执行程序并传递参数
- ios UIWebView调用本地html和javascript,并且和ios通讯
- 调用本地系统中的可执行程序
- java本地方法 从java程序中调用c函数
- 用python程序调用C/C++编译的可执行文件
- python 调用外部程序防止一直阻塞