- 博客(57)
- 资源 (6)
- 问答 (3)
- 收藏
- 关注
原创 [os.remove(f‘/home/ubuntu/LYYDownloaderServer/{name}‘) for name in glob.iglob(‘.log.*‘)]
[os.remove(f'/home/ubuntu/LYYDownloaderServer/{name}') for name in glob.iglob('LYYDownloaderServer_uwsgi.log.*')]
2023-01-30 21:41:45
136
原创 url文字定位 https://docs.djangoproject.com/en/4.1/intro/tutorial07/#:~:text=the%20“Add%20Another%20Choi
url文字定位
2022-12-28 23:14:54
140
原创 re.sub escape repl
https://www.google.com/search?q=re.sub+escape+repl&oq=re.sub+escape+repl&aqs=chrome..69i57.7218j0j4&sourceid=chrome&ie=UTF-8is it necessary to add a 'r' before the second argument in re.sub('#\*(.+?)\*#', '<b>\g<1></b>'.
2022-04-07 16:31:40
184
原创 Hypothesis标注不显示的解决方案
其中一个主要原因是因为url变化造成的,比如创建标注的时候网址url是:Writing your first Django app, part 2 | Django documentation | Django或Your first Wagtail site — Wagtail Documentation 2.16.1 documentation过了一段时间后网址变成了https://docs.djangoproject.com/en/4.0/intro/tutorial02/或
2022-03-29 14:19:38
777
原创 英酷词典 使用方法 必知必会
本文会介绍关于英酷词典的如下三方面内容:怎么获得极致体验?制作单词表并导入Anki词典管理怎么获得极致体验?虽然[英酷词典](https://www.cnblogs.com/iMath/p/EngkuDict.html)释义小窗口出现的速度目前还不够快,但是已经做到了在浏览器(包括360浏览器、谷歌浏览器等)和SumatraPDF阅读器里的极致体验——在这些软件里小窗口可以**秒现**,和你在视频演示里看到的一样快!为了获得这样的体验,你需要下载并安装这两款软件:英酷词典浏览器插件。下载方
2022-03-07 15:39:46
132
原创 python lockfile read write
https://docs.python.org/3/library/fcntl.html#fcntl.lockfhttps://stackoverflow.com/questions/32592698/how-to-lock-a-directory-between-python-processes-in-linuxhttps://www.google.com/search?q=Python+with+lock+file&newwindow=1&sxsrf=AOaemvJCtZ_ke5IN
2022-01-05 16:47:04
276
原创 Linux版超链接
<span style="text-align: right;"><a href="https://www.cnblogs.com/iMath/p/8461599.html" target="_blank" rel="noopener">Linux版</a></span>
2021-12-24 21:32:42
1007
原创 getElementByXpath setInterval常用法
function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;}// getElementByXpath('//*[text()="标准分类"]')var intervalID = setInterval(() => { var element = getElemen..
2021-12-16 18:49:20
745
转载 selenium Enabled
3. NavigatingThe first thing you’ll want to do with WebDriver is navigate to a link. The normal way to do this is by callinggetmethod:driver.get("http://www.google.com")WebDriver will wait until the page has fully loaded (that is, theonloadeven...
2021-11-03 20:47:20
2742
原创 js QQ音乐歌词显示在浏览器标题
// ==UserScript==// @name New script - qq.com// @namespace Violentmonkey Scripts// @match https://y.qq.com/n/ryqq/player// @grant none// @version 1.0// @author -// @description 2021/10/21 下午3:19:39// ==/UserScript==(...
2021-10-22 14:34:04
260
原创 备份 我文章里的分配律证明
(a+b)⋅c=limn→∞((an+bn)⋅cn)=limn→∞(ancn+bncn)(a+b) \cdot c=\lim _{n \rightarrow \infty}\left(\left(a_{n}+b_{n}\right) \cdot c_{n}\right)=\lim _{n \rightarrow \infty}\left(a_{n} c_{n}+b_{n} c_{n}\right)(a+b)⋅c=limn→∞((an+bn)⋅cn)=limn→∞(ancn+bncn)
2021-08-21 21:43:17
123
原创 nginx uwsgi部署Django必备命令
后期更改只要这些操作sudo su -cd /home/ubuntu/LYYDownloaderServer/&&source LYYDownloaderServerEnv/bin/activate&&pkill -f uwsgi -9&&uwsgi --ini uwsgi.inisudo chmod 777 .sudo chmod 777 /home/ubuntu/LYYDownloaderServer/files/LYYDownloaderS
2021-08-18 23:02:50
183
原创 macrotrends金融数据抓取
def createLIBOR_Rate_CSV(): for LIBOR_Rate_Date_Period, DataId in LIBOR_Rate_Date_Period2DataId.items(): webpageSourceCode = getWebResponseText(f'https://www.macrotrends.net/assets/php/chart_iframe_comp.php?id={DataId}&url=1-month-libor-r..
2021-07-17 21:55:09
550
2
原创 等待图片全部加载然后打印PDF,未成功
已知limn→∞f(x1)+⋯+f(xn)n=L\lim _{n \rightarrow ∞} \frac{f\left(x_{1}\right)+\cdots+f\left(x_{n}\right)}{n}=Ln→∞limnf(x1)+⋯+f(xn)=L其中f(xi)>0(i=0,1,2,...,n)f\left(x_{i}\right)>0 (i=0,1,2,...,n)f(xi)>0(i=0,1,2,...,n),求limn→∞f(x0)+f(x1)+⋯+f(x
2021-05-16 19:32:00
262
原创 Python ctypes获取按键名字
改自https://stackoverflow.com/a/53734696/1485853那里的好像不能正常工作import atexit,ctypesimport threading,win32confrom ctypes import *from ctypes import wintypesfrom ctypes import c_short, c_char, c_uint8, c_int32, c_int, c_uint, c_uint32, c_long, Structure, WI
2021-04-13 09:56:41
398
转载 无法启动此程序,因为计算机中丢失 api-ms-win-crt-runtime-l1-1-0.dll
摘要我这边碰到的错误是在安装 MySQL Workbench 时出现的,这个文件是 Visual C++ Redistributable 下的一个文件。我按照其官网上标注的安装前提,安装了 Visual C++ 2015 Redistributable for Visual Studio 2015,重新安装 Workbench 仍然报该错误。问题描述解析其主要原因是在安装 Visual C++ 2015 Redistributable for Visual Studio 2015 时,系统中
2021-04-05 00:35:23
4862
原创 Lector阅读器折腾笔记
先安装http://djvu.sourceforge.net/然后pip install --upgrade lxml beautifulsoup4 xmltodict pymupdf python-djvulibre把第一步的软件文件C:\Program Files\DjVuLibre 全部copy到这里面C:\Users\Oscar\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\djvu启动C:\Users\Osca
2021-03-21 00:58:18
241
原创 js简单鼠标手势
var mousePressedEventList = [];function myFunction(e) { if (e.buttons == 1 || e.buttons == 2) { //按住左键 mousePressedEventList.push(e); } else if (e.buttons == 0) { //释放的时候 if (mousePressedEventList.length > 3) { firstPointY = .
2021-03-19 17:19:34
875
原创 实数的基本算术规则
对于任意给定的实数x,y,zx, y, zx,y,z,x≤xx \leq xx≤x.若 x≤yx \leq yx≤y 且 y≤x,y \leq x,y≤x, 则 x=yx=yx=y.若 x≤yx \leq yx≤y 且 y≤z,y \leq z,y≤z, 则 x≤zx \leq zx≤z不是x≤yx \leq yx≤y 就是 y≤xy \leq xy≤x.若 x≤y,x \leq y,x≤y, 则 x+z≤y+zx+z \leq y+zx+z≤y+z.若 x≤yx \leq yx≤y 且 0≤
2021-03-05 21:35:19
127
原创 数的连续体 Markdown备份
你也许会想这么证明:假设有一个数能产生这个分割,那么这个数本身可以归为A1A_1A1这部分的最大数或A2A_2A2这部分的最小数。假设aaa是A1A_1A1内最大的有理数,那么aaa必然是正有理数,只要选定足够大的正整数nnn就可以让a+1na+\dfrac {1} {n}a+n1变得比aaa稍大一点点,那么我们很自然就会想:是不是存在正整数nnn使得(a+1n)2<2\left(a +\dfrac {1} {n}\right) ^{2} < 2(a+n1)2<2呢?若存在,那么
2021-01-27 17:21:17
96
原创 京东抢购代码
if (window.location.href.indexOf("https://item.jd.com/100012043978.html") != -1) { //去结算 页面 var intervalID3 = window.setInterval(function() { //点击退款理由取消订单 var btn=document.querySelector("#btn-reservation"); if ((btn.innerTe...
2021-01-27 10:19:33
1941
原创 KeyLogger hook
# https://stackoverflow.com/questions/53732628/python-using-winapi-setwindowshookexa-on-windows-10import win32conimport ctypesfrom ctypes import *from ctypes.wintypes import DWORDuser32 = windll.user32kernel32 = windll.kernel32class KBDLLHOOKSTRU
2020-12-21 14:02:40
109
原创 英语技能长处介绍
Expertise in programming and desktop software since 2004.Web application development with Python/Django/ | PHP/Laravel | GolangFrameworks : Django, Flask, Fsecond prize of a national singingWorking for the UX design of our website and its develop.
2020-12-03 20:14:18
187
原创 FinancialChartsWebsite常用命令
pip install django-apschedulercd /home/ubuntu/FinancialChartsWebsitesource /home/ubuntu/FinancialChartsWebsite/FinancialChartsWebsiteEnv/bin/activatesupervisorctl update all
2020-09-24 23:01:22
123
原创 反三角函数的积分公式
∫11−u2dudxdx=sin−1u+C\int \frac{1}{\sqrt{1-u^{2}}} \frac{d u}{d x} d x=\sin ^{-1} u+C∫1−u21dxdudx=sin−1u+C∫−11−u2dudxdx=cos−1u+C\int-\frac{1}{\sqrt{1-u^{2}}} \frac{d u}{d x} d x=\cos ^{-1} u+C∫−1−u21dxdudx=cos−1u+C∫11+u2dudxdx=tan−1u+C\int \frac
2020-08-30 16:35:48
6585
1
原创 the trapezoidal rule for approximating Definite Integrals
Approximate ∫012dx1+x2\int_{0}^\frac{1}{2} \frac{d x}{1+x^{2}}∫0211+x2dx by using five subintervals. \quad Ans. 0.463表达式产出:leftPoint = 0rightPoint = 1 / 2subIntervalNum = 5subIntervalLen = '{}/{}'.format(rightPoint - leftPoint, subIntervalNum)exp
2020-08-20 12:36:33
161
原创 Python下载网页
颜色下载 财政部会计准则委员会 的网页import requestsfrom bs4 import BeautifulSouprequestsSession = requests.Session() # if you’re making several requests to the same host, the underlying TCP connection will be reused, which can result in a significant performance .
2020-06-04 10:11:21
175
转载 黎曼积分动图、示意图备份
来自:https://giphy.com/gifs/math-MY1RMBRjfwvxS来自:https://jmahaffy.sdsu.edu/courses/f00/math122/lectures/riemann_sums/riemanns.html
2020-05-25 20:25:33
525
原创 乐影音下载器 建议回复
1.强烈希望能支持断点续传,网络错误或用户主动的暂停,再开始需要从头下载(哪怕只隔了几秒),对较大的你视频十分不利。一开始我的软件是支持断点续传的,但是有些网站的视频不支持断点续传,2.软件功能过于简单,虽然照顾了电脑新手,但确实功能单一,不利于使用。如只支持通过剪贴板中的链接下载视频,能选择和操作的空间很有限。3.希望能定向下载指定视频,而不是只能通过剪贴板链接选择视频。如非视频网站的...
2020-02-29 21:36:49
411
原创 Python 获取文件后缀名
import urllib.parse,osurl="http://220.165.10.15/videos/v0/20140815/3d/62/77772ee94ed4c3b6d265bca9f5d576cd.f4v?key=0dcb341c18a4b6f8f246841ad03aced98&src=iqiyi.com&su=a9c60180dc324addb9501c8f4...
2019-12-15 20:38:12
345
原创 HTML右对齐
<style>#DownloadOptions {display: flex;}#DownloadOptions a {padding-right:3em;/*The spec recommends avoiding percentage values for margin and padding on flex items because of unpredictable re...
2019-07-27 17:27:15
5768
原创 bilibili pc浏览器高画质视频分享嵌入
还没找到手机版高画质视频分享嵌入的代码<iframe src="https://player.bilibili.com/player.html?aid=33503034&cid=100689109&page=1&as_wide=1&&high_quality=1" scrolling="no" border="0" frameborder="no" ...
2019-07-19 19:50:29
3992
1
原创 *params、**params: Collecting Parameters and Distribute Parameters
################################*###############################The star in front of the parameter puts all the values into the same tuple.def print_params_2(title,*params): print tit...
2019-07-11 16:41:41
236
原创 早期的牛津lemmatize
# lemmaDict = IndexBuilder(r'E:\mdx-test\牛津高阶英语学习词典第八版.mdx') # 108749, 貌似不错,返回 ['@@@LINK=fence\r\n'))))))# def lemmatize(word):# lowercasedWord = word.lower()# dictResult = mdict.mdx_looku...
2019-05-30 22:02:33
214
原创 anki addon 插件编写示例
# import sys# # import the main window object (mw) from aqt# from aqt import mw# # import the "show info" tool from utils.py# from aqt.utils import showInfo# # import all of the Qt GUI library# ...
2019-05-30 01:22:20
1379
原创 cellclock.py
import sys from PySide2.QtGui import * from PySide2.QtCore import *from PySide2.QtWidgets import * ...
2019-04-30 10:12:43
86
原创 chrome net_error_map
https://chromium.googlesource.com/chromium/src.git/+/refs/tags/74.0.3729.78/components/domain_reliability/util.ccnet_error_map[] = { { net::OK, "ok" }, { net::ERR_ABORTED, "aborted" }, { net:...
2019-04-10 18:06:04
1206
英酷词典EngkuDict-installer.exe
2024-02-10
pyqt-model-view-framework-overview.pdf
2013-04-21
Introduction to Python Programming and Developing GUI Applications with PyQT
2012-10-17
PySide 1.1.0 documentation
2012-09-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人