摘要: import win32api #winapi库 import win32con #windows常数定义 win32api.MessageBox(win32con.NULL, "在过去的1分钟内,CPU连续五次超过4%", "cpu提示") 阅读全文
posted @ 2020-04-08 11:23 Gex 阅读(797) 评论(0) 推荐(0) 编辑
摘要: from serial import Serial from types import FunctionType,MethodType #与类和实例无绑定关系的function都属于函数(function); #与类和实例有绑定关系的function都属于方法(method)。 def open_s 阅读全文
posted @ 2020-04-08 11:21 Gex 阅读(395) 评论(0) 推荐(0) 编辑
摘要: class HangUp(object): current_path = os.getcwd() test_path = current_path + r'/log/' log_name = test_path + time.strftime('%Y-%m-%d %H-%M-%S') + ".log 阅读全文
posted @ 2020-04-08 11:05 Gex 阅读(141) 评论(0) 推荐(0) 编辑