猫史档案馆


【Python作品分享】Windows电脑关机

用户:CPU中央处理器CPU中央处理器查看:1 回复:7 评论:1 创建时间:2020-04-24T23:07:57


【作品展示】

center_image

 

【作品介绍】

111

 

【作品源代码】

#开始进入Python的世界
os.systom(shutdown-s-t 3)

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
wrmdcxywrmdcxy

SyntaxError:invalid syntax

During handling of the above exception, another exception occurred:

NameError:The name "shutdown" is not defined

During handling of the above exception, another exception occurred:

NameError:The name "s" is not defined

During handling of the above exception, another exception occurred:

NameError:The name "t" is not defined

During handling of the above exception, another exception occurred:

SyntaxError:invalid syntax

点赞0


评论


LAG的1048576一枚LAG的1048576一枚


程序运行结束

点赞0


评论


一块石头落地一块石头落地

SyntaxError: invalid character in identifier

点赞0


评论


一块石头落地一块石头落地

SyntaxError: invalid character in identifier

点赞0


评论


芜湖咸鱼芜湖咸鱼

错啦错啦!!!

os没导入,字符串没引号,你没学Python吗!!

正确代码:

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

点赞0


评论


無一郎無一郎

坑人也得认真点

点赞0


评论


不起眼的账号不起眼的账号

喵没教你坑人得告诉别人吗?

点赞0


评论