Answers for "how to get os to shut down your pc with python"

8

how to shutdown a computer with python

import os

os.system("shutdown /s /t 1")
Posted by: Guest on July-06-2020
1

how to shutdown your computer using python

import os
os.system("shutdown /s /t 1")
Posted by: Guest on October-01-2021

Code answers related to "how to get os to shut down your pc with python"

Python Answers by Framework

Browse Popular Code Answers by Language