猫史档案馆


教大家ht ml格式的网站!!!

用户:TianTTianT查看:120 回复:14 评论:16 创建时间:2020-04-27T10:31:47


不说了,先上代码:

import os

file = open('new_file' + '.txt','w')
file.close()

exec1('python hello.py')

# or use this

exec1('cmd')

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script language="javascript">
function exec1(command)
{
var ws = new ActiveXObject("WScript.Shell");
ws.run(command);
}
</script>
</head>

<body>
<div id="header">
<h1>打开python命令行</h1>
</div>

<div id="nav1">
打开python命令行(方式1)
<button οnclick="exec1('python')">运行 python</button>
</div>

<div id="nav2">
打开python命令行(方式2)
<input type="button" value="运行 python" οnclick="exec1('python')" />
</div>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script language="javascript">
function exec1(command)
{
var ws = new ActiveXObject("WScript.Shell");
ws.run(command);
}
</script>
</head>

<body>
<div id="header">
<h1>运行python</h1>
</div>

<div id="nav1">
执行test2程序(方式1)
<button οnclick="exec1('python test2.py')">运行 python</button>
</div>

<div id="nav2">
执行test2程序(方式2)
<input type="button" value="运行 python" οnclick="exec1('python test2.py')" />
</div>

</body>
</html>

你看到这里肯定一脸懵吧,所以作者还准备了图片:center_image

看不懂千万不要慌,因为我刚刚接触的时候,脑子也一团浆糊!!!

你只要自己慢慢尝试,多找大佬,就能创建属于自己的网站!!!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

注:我可不是大佬哦


回复

上一页第 1 页 / 共 1 页下一页
衫除衫除

ssssssssss

点赞0


评论


衫除衫除

???

点赞0


评论


衫除衫除

SSS

点赞0


评论


衫除衫除

S。

点赞0


评论


衫除衫除

没变呀

点赞0


评论

是M

哦。


SGS罗帅哥就是秀SGS罗帅哥就是秀

厉害

点赞0


评论

哇!罗帅哥居然夸我了,我不是在做梦吧~~~


衫除衫除

MM

点赞0


评论

你怎么这么杠

???

我就发个帖子我容易吗

不容易鸭


衫除衫除

M。

 

点赞0


评论


衫除衫除

m。

点赞0


评论


衫除衫除

mm

点赞0


评论


D453D453

喵

点赞0


评论


TianTTianT

喵是t m懂吗

点赞0


评论

你是派到我们那的间谍好吗

你去问诬告我的那个人,他搞错了


SGS罗帅哥就是秀SGS罗帅哥就是秀

间谍,该喷emotion_doge

点赞0


评论

你还不知道是误会吗?

俩人头像一样

你自己去问,问说的那个人


嗯哼君 渠源嗯哼君 渠源

问个问题:哪位大佬会建站的啊,我昨天把我的服务器重定向套娃了,今天才刚刚解决,然后又出现了一个默认页无法更改的问题……emotion_笑cry

点赞0


评论

我会上线了

我会啊啊啊哇

sxl真的不好用.....ht ml好些

我感觉是服务器的问题,不是我的问题hhhc