[win10] Install win10 system

1.Search "MSDN, 我告诉你", so you can find the official site. https://msdn.itellyou.cn/

Then find the win-10 link to downlaod:

2.Copy the link address to 百度网盘-->离线下载-->填写下载文件链接。(除了百度网盘,还可以用迅雷,电驴等工具下载。)

Then the win-10 file is download in 百度网盘。To now, you can download using 百度网盘。

3.Sugest to install Home Edition, that its less than other vertion.

Multiple editions include Home Edition and Perfetional Edition, I chose Home Edition, because someone said Home Edition is fater than Perfetional Edition.

4.Something must setting.

a.Stop auto update.

Enter "Windows更新-->高级选项":

Close auto install update package:

b.Close all private update.

2th:

3th

 

 

(end)

可以使用 Python 中的 win32api 库来检测 Windows 10 是否处于休眠状态。具体步骤如下: 1. 安装 pywin32 库 ```python pip install pywin32 ``` 2. 导入 win32api 库 ```python import win32api ``` 3. 使用 GetLastInputInfo 函数获取最后一次输入时间 ```python def get_last_input_time(): # 获取最后一次输入时间 last_input_time = win32api.GetLastInputInfo() # 将毫秒转换为秒 last_input_time = last_input_time / 1000 return last_input_time ``` 4. 检测是否超过一定时间未有输入 ```python def is_system_idle(idle_time_threshold): # 获取当前时间 current_time = win32api.GetTickCount() # 计算最后一次输入时间和当前时间的时间差 last_input_time = get_last_input_time() elapsed_time = current_time - last_input_time # 判断是否超过一定时间未有输入 return elapsed_time > idle_time_threshold ``` 其中,idle_time_threshold 是空闲时间的阈值,单位为毫秒。如果超过这个时间未有输入,则认为系统处于空闲状态。可以根据需要设置不同的阈值。例如,如果设置为 300000 毫秒,则表示空闲 5 分钟以上时认为系统处于空闲状态。 完整代码示例: ```python import win32api def get_last_input_time(): # 获取最后一次输入时间 last_input_time = win32api.GetLastInputInfo() # 将毫秒转换为秒 last_input_time = last_input_time / 1000 return last_input_time def is_system_idle(idle_time_threshold): # 获取当前时间 current_time = win32api.GetTickCount() # 计算最后一次输入时间和当前时间的时间差 last_input_time = get_last_input_time() elapsed_time = current_time - last_input_time # 判断是否超过一定时间未有输入 return elapsed_time > idle_time_threshold if __name__ == '__main__': # 判断系统是否处于空闲状态(空闲 5 分钟以上) if is_system_idle(300000): print('系统处于空闲状态') else: print('系统未处于空闲状态') ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值