用户:wrmdcxy查看:287 回复:21 评论:75 创建时间:2020-02-19T20:06:38
【作品展示】

【作品介绍】
Windows命令提示符
【作品源代码】
import os,sys
print('Microsoft Windows[版本 10.0.18363.592]')
print('(c) 2019 Microsoft Corporation。保留所有权利。')
while True:
command=input('C:\\Users>')
if command.lower().replace('-f','-s')=='taskkill -s -t cmd.exe':
os.system('cls')
sys.exit(0)
else:
os.system(command)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn
泠尘晓我不在的时候都发生了什么!!!!
点赞0
评论
我怎么知道
同志,我们一起建一个工作室吧
如何
不好意思,我不想加入或创建工作室
为什么???
哪不然当个顾问?
拜托拜托
我很少上线,要上学
而且我是真的不想……
我也是啊
可是最近不是喵毒吗
我是2015级的
是的,但以后要上学的呀……我只想默默地当一个普通用户……
2015级?我也是
我先去吃下饭~
一会见
吃完饭~
你等我一下 我还没吃呢
你Python好厉害
emmmmm~这样聊天好麻烦我觉得我们可以联手做一个聊天室
额……也不是啦
是的,F5按得手都累了
不如这样,我再创一个号我们一起用
用来做作品
我去吃饭了,拜拜,一会见
这个……小心密码泄露啊
一会见~
hi
Hi
我回来了
嗯~刚刚我去写作业(老师布置了抗疫假期的额外的作业,啊啊啊!太多了!手要废了!)
我不会的你会了,你不会的我会了。
??
???
程序更改:
import os,sys,getpass
name=getpass.getuser()
os.chdir('C:\\Users\\'+name)
print('Microsoft Windows[版本 喵]')
print('(c) 2019 Microsoft Corporation。保留所有权利。')
while True:
command=input('C:\\Users\\%s>'%(name))
if command.lower()=='taskkill -t -im cm d.exe -f':#此处空格防屏蔽
os.system('cls')
sys.exit(0)
else:
os.system(command)点赞1
评论
梦里觅深海厉害
点赞0
评论
??
有QQ吗,我们再找教程编写员。https://codesra.cn/career/
我心动了...我,可以吗?
虽然,只学过差不多一年python,和不到一个月java、js、ht ml
QQ有吗
嗯,我妈有,但最好可以不加,我看看。
QQ群:1079943856
我没有QQ,邮箱倒是有
有 钉钉 吗.
我可以吗?等下加QQ群。
好的
谢谢
加了吗
要等我爸回来,可能要到明天,没办法,sorry
这个人是袁**吗?(第一次用qq)
是一个群,叫编程源码*** 群号:1079943856
好像找不到,只有一个人
比较我是第一次用QQ
Yes,但是我担心我妈发现
可以了吗?
QQ号是什么???
你没收到吗?
过一下。
//一个简单的射击PvP
world.onPlayerJoin(({ entity }) => {
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity) {
return;
}
hitEntity.velocity.x += direction.x;
hitEntity.velocity.y += 0.5;
hitEntity.velocity.z += direction.z;
hitEntity.hurt(2 * Math.random() + 1, {
attacker: entity,
});
});
});
world.onDie(({ entity, attacker }) => {
if (attacker) {
world.say(attacker.player.name + ' killed ' + entity.player.name)
}
entity.player.forceRespawn();
});
undefined;
world.querySelectorAll('player').forEach((x) => {if (x.player.name == "cangshu") {x.say("指定说问问句")}});
//快捷PVP点赞0
评论
??
我发现一段代码可以无缝调用命令行,
import os
a = 'c'+'m'+'d' #本来不用怎么麻烦,但怕屏蔽。
os.system('%s.exe' % a)
像真的命令提示符。
点赞1
评论
蒟蒻OIer1048576import os,sys
print('Microsoft Windows[版本 10.0.18363.592]')
print('(c) 2019 Microsoft Corporation。保留所有权利。')
while True:
command=input('C:\\Users>')
if command.lower().replace('-f','-s')=='taskkill -s -t cm'+'d.exe':
os.system('cls')
sys.exit(0)
else:
os.system(command)点赞0
评论
import os,sys
print('Microsoft Windows[版本 10.0.18363.592]')
print('(c) 2019 Microsoft Corporation。保留所有权利。')
while True:
command=input('C:\\Users>')
if command.lower().replace('-f','-s')=='taskkill -s -t cmd.exe':
os.system('cls')
sys.exit(0)
else:
os.system(command)
点赞0
评论
蒟蒻OIer1048576print(' '.join(['{i}*{j}={pro}'.format(i=i,j=j,pro=i*j) for i in range(1,10) for j in range(1,10) if i>=j]))点赞0
评论