1 2 3 4 5 ··· 7 下一页
摘要: 最近遇到需要刷某网课,把视频进度条禁止掉了,下面是直接跳转的代码,到控制台运行即可 let video = document.querySelectorAll('video')[0]; // 选取第一个video节点 video.currentTime = video.duration - 3; / 阅读全文
posted @ 2024-08-26 13:37 wstong 阅读(3) 评论(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 阅读(3) 评论(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 阅读(2) 评论(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 阅读(8) 评论(0) 推荐(0) 编辑
摘要: SUMIF(range, criteria, [sum_range]) range 是你要根据条件进行检查的单元格区域。 criteria 是根据其检查 range 的条件。这个条件可以是数字、表达式、或文本字符串。 [sum_range] 是可选的参数,当要求和的数字位于与 range 不同的区域 阅读全文
posted @ 2024-05-03 23:33 wstong 阅读(4) 评论(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 阅读(29) 评论(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 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 先加载图片,然后打开浏览器控制台 // 查询所有div标签 let divs = document.querySelectorAll('div'); let imgCanvas = document.querySelector('#pageContainer').querySelectorAll(' 阅读全文
posted @ 2024-02-28 23:00 wstong 阅读(25) 评论(0) 推荐(0) 编辑
摘要: manifest.json "permissions": [ "storage" ] popup.js var data = { "url": "http://127.0.0.1" }; chrome.storage.local.set({ "data": data }, function(){ c 阅读全文
posted @ 2024-02-22 23:00 wstong 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 直接使用flask自带的wsgi,关闭debug模式会出现以下警告 from flask import Flask app = Flask(__name__, static_folder="./static") app.run(host="0.0.0.0", port=8080, debug=Fal 阅读全文
posted @ 2024-02-15 23:06 wstong 阅读(67) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 7 下一页