(21) Raspberry Pi using the call command to call python python linux command line and in the return value os.system

cmd = "sudo shutdown -h now";

os.system(cmd)

Guess you like

Origin www.cnblogs.com/kekeoutlook/p/11267377.html