删除文本文件的特定行defremoveLine(filename,lineno):fro=open(filename,"r",encoding='UTF-8')current_line=0whilecurrent_line<lineno:fro.readline()current_line+=1seekpoint=fro.tell()frw=open(filename,"r+")frw.se
win32ts.WTSRegisterSessionNotification监控计算机锁定状态https://msdn.microsoft.com/en-us/library/aa383841(v=vs.85).aspx代码:WM_WTSSESSION_CHANGE=0x2B1classWTSMonitor():className="WTSMonitor"wndName="WTSEventMoni
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号