- 博客(21)
- 收藏
- 关注
转载 转:python编程实现:分别从三个(多个)列表中抽取一个元素,组成新的列表,类似组合问题的求解
【代码】转:python编程实现:分别从三个(多个)列表中抽取一个元素,组成新的列表,类似组合问题的求解。
2023-07-20 19:11:27
848
原创 debugscreen_子网页
查看代码,可以看到左侧菜单是一个子网页,navigation。进入 更上一层查询navigation。所以子网页可以根据port号来访问。
2023-06-15 16:53:27
84
原创 CC BG1 扩充
import ospath = "Y:/1080tga/1080tga_big/Tennis Channel TGA/CC BG1/" filename_list = os.listdir(path)filename_list.sort()a = 0t=int(len(filename_list))for i in filename_list: temp=str(...
2019-07-31 20:10:05
140
原创 PYQT5+PY3.7 QLineEdit属性
from PyQt5 import QtCore, QtGui, QtWidgetsfrom PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBoxfrom PyQt5.QtGui import QIconfrom PyQt5.QtCore ...
2019-07-12 14:01:57
616
转载 【转】进制问题
整数之间的进制转换:10进制转16进制: hex(16) ==> 0x10 16进制转10进制: int('0x10', 16) ==> 16类似的还有oct(), bin()-------------------字符串转整数:10进制字符串: int('10') ==> 10 16进制字符串: int('10', 16) ==> 16 ...
2019-04-22 17:10:34
265
转载 转-PyQt5基本控件详解之QLineEdit
转:https://blog.youkuaiyun.com/jia666666/article/details/81510502QLineEditQLineEdit类中常用的方法如下表方法 描述setAlignment() 按固定值方式对齐文本Qt.AlignLeft:水平方向靠左对齐Qt.AlignRight:水平方向靠右对齐Qt.AlignCenter:水平方向居中对齐Qt...
2019-01-11 17:17:27
5029
原创 python-关于Windows内存和性能
PageFaultCount: 页面错误 PeakWorkingSetSize: 高峰内存使用 WorkingSetSize: 内存使用 QuotaPeakPagedPoolUsage: 页面缓冲池峰值 QuotaPagedPoolUsage: 页面缓冲池 ...
2019-01-10 18:26:47
800
转载 转-python中matplotlib的颜色及线条控制
python中matplotlib的颜色及线条控制转载请注明出处:http://www.cnblogs.com/darkknightzh/p/6117528.html参考网址:http://stackoverflow.com/questions/22408237/named-colors-in-matplotlibhttp://stackoverflow.com/questio...
2019-01-10 17:47:07
259
转载 [zhuan]python和pywin32实现窗口查找、遍历和点击
1.如何利用句柄操作windows窗体首先,获得窗体的句柄 win32api.FindWindows()第二,获得窗体中控件的id号,spy++第三,根据控件的ID获得控件的句柄(hwnd) GetDlgItem(hwnd,loginID)最后,利用控件句柄进行操作python可以通过win32api轻松获取控件的属性值通过标签找到主窗口句柄,然后通过主句柄获取下属控件...
2019-01-07 18:55:12
1839
原创 python-关于dict
文件转DICT文件中的内容:vibox_installed# Trueversion# 4.1850.141.0000vibox_log_path# C:\Logs\ViBoxDemovibox_config_file# C:\ViBox Data\System\LastUsed.cfgfilename=('C:\\SimplyLive_Log_Collector\\temp....
2018-12-25 15:32:10
625
转载 Python 计算程序运行时间
Python 计算程序运行时间,需要导入 time 模块。import time关于time的一些模块可以参考大腿的博客:http://www.cnblogs.com/shenxiaolin/p/7786920.html我主要想要得到循环的运行时间,只需要用到模块里面的clock函数即可实例: import timestart = time.clock()#中间是...
2018-12-03 17:54:47
215
转载 Useful WMIC Queries
To execute these queries, run “WMIC” at a command prompt, followed by one of the following alias/es:baseboard get Manufacturer, Model, Name, PartNumber, slotlayout, serialnumber, pow...
2018-10-25 15:40:21
189
转载 CMD命令锦集
CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本、文件系统版本)CMD命令锦集 1. gpedit.msc-----组策略 2. sndrec32-------录音机 3. Nslookup-------IP地址侦测器 ,是一个 监测网络中 DNS 服务器是否能正确实现域名解析的命令行工具。 它在 Windows NT/2...
2018-10-18 14:40:57
378
转载 python中break、continue 、exit() 、pass区分
转:https://www.cnblogs.com/deepblue775737449/p/8507078.htmlpython中break、continue 、exit() 、pass区分1、break:跳出循环,不再执行Python break语句,就像在C语言中,打破了最小封闭for或while循环。 break语句用来终止循环语句,即循环条件没有False条件或者序列还没被完...
2018-10-16 14:41:34
166
原创 python,文件操作集
文件读取赋值给数组def file2array(filepath): filepath=filepath ary=[] with open(filepath,'r') as f: for line in f: ary.append(line) return ary文件中的数据:012调用结果:['0\n', '1\n', '2']需要使用str...
2018-10-16 12:39:41
441
原创 字符串操作
集合---------------------------------------------------------------------------------------------------------------------------------------1 - str.title() : 首字母大写的方式显示每个单词.注意:str.title()方法还会将单词中...
2018-10-09 18:47:29
473
转载 Python-Get the positon of mouse
import timeimport pyautogui as pagimport tkinterdef get(): po.delete(0,tkinter.END) time.sleep(2) #几秒后返回位置 x , y = pag.position() po.insert(0,str(x)+','+str(y))root = tkinter.T...
2018-10-09 18:20:53
168
原创 Python-auto-run for refbox-master user
# -*- coding:utf-8 -*-import time,osimport keyboardimport mouse from pynput.mouse import Button, Controllerimport time,subprocessmouse = Controller()sleep=time.sleep(5)#def mouse single-clic...
2018-10-09 18:18:24
257
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人