pu369com

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页

2023年3月15日

python-mss 截图简单示例

摘要: python-mss 是一个速度非常快的截图和录像工具,支持跨平台,使用纯 python 语言开发。 pip install mss 截取指定区域并保存为png #encoding=utf-8 import mss with mss.mss() as sct: box ={"top":50,"lef 阅读全文

posted @ 2023-03-15 12:54 pu369com 阅读(787) 评论(0) 推荐(0) 编辑

2023年3月10日

pyautogui.locateOnScreen在屏幕上查找图片并点击

摘要: 1.在Win10中任意窗口按下"Win+Shift+S"组合键进入截屏模式 ,截图并保存为 n.png 2.代码: #encoding=utf-8 import pyautogui from PIL import Image import time time.sleep(3) left, top, 阅读全文

posted @ 2023-03-10 17:14 pu369com 阅读(1294) 评论(0) 推荐(0) 编辑

2023年3月7日

pynput获取鼠标位置及颜色例子(按键精灵仿品)

摘要: #encoding=utf-8 from PIL import ImageGrab from pynput.keyboard import Key,Listener from pynput import mouse print("用右ctrl键获取鼠标位置及像素") filename = 'mous 阅读全文

posted @ 2023-03-07 20:07 pu369com 阅读(34) 评论(0) 推荐(0) 编辑

2023年3月6日

[学习记录]dataframe的ewm()方法

摘要: 以下内容均为借鉴 Jon Snow(不想当韭菜的码农不是好交易员)知乎内容,予以感谢。 pandas库中的ewm(),是我学习量化以来第一个卡住的地方,越学发现和数学的紧密程度越高。 DataFrame.ewm(self, com=None, span=None, halflife=None, al 阅读全文

posted @ 2023-03-06 12:39 pu369com 阅读(363) 评论(0) 推荐(0) 编辑

2023年3月1日

python检测文件编码格式

摘要: #encoding=utf-8 import os import chardet path1 = r"D:\n.xls" with open(path1,'rb') as f: print(chardet.detect(f.read())['encoding']) 阅读全文

posted @ 2023-03-01 15:52 pu369com 阅读(19) 评论(0) 推荐(0) 编辑

2023年2月28日

python显示屏幕点的坐标和颜色(pyautogui)

摘要: #encoding=utf-8 import pyautogui from PIL import ImageGrab print("将光标移到左上角0,0坐标点停止运行程序") while True: # 获取当前光标位置 x, y = pyautogui.position() px = Image 阅读全文

posted @ 2023-02-28 15:43 pu369com 阅读(421) 评论(0) 推荐(0) 编辑

2023年2月24日

pandas 常用方法使用示例

摘要: #生成DataFrame,保存至文件 from pandas import DataFrame import numpy as np import pandas as pd t={ "称呼": ["爸爸","妈妈","宝宝"], "年龄": [18, 30, np.nan], "性别": [None 阅读全文

posted @ 2023-02-24 19:10 pu369com 阅读(32) 评论(0) 推荐(0) 编辑

2023年2月16日

【python】通达信自定义数据管理器的简单应用

摘要: 1.在《通达信-功能-公式系统-自定义数据管理器》中可以手工添加数据,并导出为txt文本,但手工只能添加几个,多了就费劲了。 2.在任意行情列表页上,执行《系统-数据导出》可以将几千条数据导出为txt文本, 于是决定用第2步数据来更新第1步的数据,代码如下: #encoding=utf-8 impo 阅读全文

posted @ 2023-02-16 09:28 pu369com 阅读(931) 评论(0) 推荐(0) 编辑

2022年9月16日

最简单的Chrome扩展插件V3版本

摘要: 单位升级了OA办公系统,有一个必填项,通常写“同意”,然而系统设计不合理,需要打字或点好几次鼠标才行。自己写个chrome extension来填写吧。 在任意目录中,建立2个文件:manifest.json和content.js 1、manifest.json { "version": "0.0. 阅读全文

posted @ 2022-09-16 15:40 pu369com 阅读(1065) 评论(0) 推荐(0) 编辑

2022年8月26日

chrome控制台发送post请求

摘要: chrome控制台发送post请求chrome, 按F12,打开控制台, 执行下面脚本 代码 var url = "https://www.test.com/Admin/testpost; var params = {id:"1",name:"q"}; var xhr = new XMLHttpRe 阅读全文

posted @ 2022-08-26 15:22 pu369com 阅读(3585) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页

导航