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

【作品介绍】
111
【作品源代码】
#开始进入Python的世界
os.systom(shutdown-s-t 3)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cnSyntaxError: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
评论
芜湖咸鱼错啦错啦!!!
os没导入,字符串没引号,你没学Python吗!!
正确代码:
import os
os.system("shutdown -s -t 3")点赞0
评论
我一般不学Python的,专门学kitten的!!!