#关键代码
import subprocess
subprocess.Popen("rundll32 powrprof.dll,SetSuspendState Hibernate")
转自:http://kingbase.org/blog/windows_hibernate_python/
#关键代码
import subprocess
subprocess.Popen("rundll32 powrprof.dll,SetSuspendState Hibernate")
转自:http://kingbase.org/blog/windows_hibernate_python/