上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: import os, xlwings as xw app = xw.App(visible=False, add_book=False) # visible操作是否可视化, add_book打开excel是否新建excel表 book = app.books.open(os.path.join(os 阅读全文
posted @ 2024-10-27 11:33 wstong 阅读(162) 评论(0) 推荐(0)
摘要: 准备好SDK中的以下DLL:Sdtapi.dll,SavePhoto.dll,Dewlt.dll,后面两个dll用于解码图片。 调用ReadBaseMsg方法后,会在本地目录生成photo.bmp头像文件。 以下是简单调用 import ctypes fields = ['name', 'gende 阅读全文
posted @ 2024-09-09 15:20 wstong 阅读(92) 评论(0) 推荐(0)
摘要: 最近遇到需要刷某网课,把视频进度条禁止掉了,下面是直接跳转的代码,到控制台运行即可 let video = document.querySelectorAll('video')[0]; // 选取第一个video节点 video.currentTime = video.duration - 3; / 阅读全文
posted @ 2024-08-26 13:37 wstong 阅读(350) 评论(0) 推荐(0)
摘要: import numpy as np, pandas as pd, math while True: mean, std_dev, num_samples = 105, 2.5, 100 data = np.random.normal(loc=mean, scale=std_dev, size=nu 阅读全文
posted @ 2024-07-27 17:39 wstong 阅读(85) 评论(0) 推荐(0)
摘要: <html> <head> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script src="https://cdn.bootcdn.net/ajax/libs/jSig 阅读全文
posted @ 2024-07-20 17:28 wstong 阅读(124) 评论(0) 推荐(0)
摘要: 统计元素数量,并返回字典,键为元素,值为个数 from collections import Counter lst = ['a','b','c','d','a','b','a','c','c','c'] dic = Counter(lst) print(dic) # Counter({'c': 4 阅读全文
posted @ 2024-05-04 12:32 wstong 阅读(34) 评论(0) 推荐(0)
摘要: SUMIF(range, criteria, [sum_range]) range 是你要根据条件进行检查的单元格区域。 criteria 是根据其检查 range 的条件。这个条件可以是数字、表达式、或文本字符串。 [sum_range] 是可选的参数,当要求和的数字位于与 range 不同的区域 阅读全文
posted @ 2024-05-03 23:33 wstong 阅读(46) 评论(0) 推荐(0)
摘要: 1. 灰度化 from PIL import Image img = Image.open("test.jpg") img = img.convert("L") img.save("output.jpg") 2. 二值化 from PIL import Image img = Image.open( 阅读全文
posted @ 2024-04-02 20:38 wstong 阅读(138) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.3/echarts.min.js"></script> </head> <b 阅读全文
posted @ 2024-03-24 23:15 wstong 阅读(59) 评论(0) 推荐(0)
摘要: 先加载图片,然后打开浏览器控制台 // 查询所有div标签 let divs = document.querySelectorAll('div'); let imgCanvas = document.querySelector('#pageContainer').querySelectorAll(' 阅读全文
posted @ 2024-02-28 23:00 wstong 阅读(53) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页