<<--B站..........欢迎来到DGX的博客..........GitHub-->>

我的B站
摘要: 原文:https://www.cnblogs.com/parzulpan/p/13720827.html 前言# 最近在写一个开源项目,需要实现一个程序自动重启的功能。尝试了好几种方式,效果均不太理想。 一开始的实现思路是,记为思路一吧。大概就是写一些 shell 脚本,然后在需要自动重启的地方关闭 阅读全文
posted @ 2020-12-24 13:15 DG息 阅读(3292) 评论(0) 推荐(0)
摘要: 原文:https://blog.csdn.net/register_2/article/details/83387137 //...1... def a(): list=[] for i in range(1000): list=list+[i] print(list) //...2... def 阅读全文
posted @ 2020-12-24 09:07 DG息 阅读(4494) 评论(0) 推荐(0)
摘要: import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * class TrayIcon(QSystemTrayIcon): def __init__(self, pare 阅读全文
posted @ 2020-12-23 21:18 DG息 阅读(368) 评论(0) 推荐(0)
摘要: SetWindowPos() API函数介绍 1. SetWindowPos() API函数介绍 SetWindowPos 函数功能:该函数改变一个子窗口,弹出式窗口式顶层窗口的尺寸,位置和Z序。子窗口,弹出式窗口,及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高,并且被设置为Z序的 阅读全文
posted @ 2020-12-23 16:07 DG息 阅读(2518) 评论(0) 推荐(0)
摘要: 下边的是将窗口置顶后import win32gui import win32gui import win32con #获取所有窗口句柄 hwnd_title = {} def get_all_hwnd(hwnd, mouse): if (win32gui.IsWindow(hwnd) and win 阅读全文
posted @ 2020-12-23 15:30 DG息 阅读(9550) 评论(0) 推荐(1)
摘要: 原文链接https://www.cnblogs.com/pfeiliu/p/13795698.html import win32gui import win32con #获取所有窗口句柄 hwnd_title = {} def get_all_hwnd(hwnd, mouse): if (win32 阅读全文
posted @ 2020-12-23 15:20 DG息 阅读(1612) 评论(0) 推荐(0)
摘要: 原文链接https://github.com/Hopetree/TMTools 阅读全文
posted @ 2020-12-23 12:23 DG息 阅读(138) 评论(0) 推荐(0)
摘要: # -*- encoding:utf-8 -*- import sys from PyQt5.QtWidgets import QDialog, QLabel, QPushButton, QLineEdit, QListWidget, QGridLayout, QComboBox, QMessage 阅读全文
posted @ 2020-12-23 12:01 DG息 阅读(222) 评论(0) 推荐(0)
摘要: 在sklearn中包含四种评价尺度,分别为mean_squared_error、mean_absolute_error、explained_variance_score 和 r2_score。 1、均方差(mean-squared-error) 2、平均绝对值误差(mean_absolute_err 阅读全文
posted @ 2020-12-21 21:46 DG息 阅读(543) 评论(0) 推荐(0)
摘要: import os cmd = 'ipconfig /all' #输入的命令 res = os.popen(cmd) output_str = res.read() # 获得输出字符串 print(output_str) 阅读全文
posted @ 2020-12-21 10:46 DG息 阅读(335) 评论(0) 推荐(0)