上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: 我现在用的是Debian11,按照网上搜到的方法在Crontab里定时执行python脚本,可是没有反应 网上的方法大多是: */1 * * * * python 文件路径+文件名 或者是 */1 * * * * /usr/bin/python 文件路径+文件名 尝试以后,都不能用。 发现只有在当前 阅读全文
posted @ 2022-12-14 21:27 华小电 阅读(345) 评论(0) 推荐(0)
摘要: 1 import usb.core 2 3 dev = usb.core.find(idVendor=0x17ef,idProduct = 0x600e) 4 ep = dev[0].interfaces()[0].endpoints()[0] 5 6 7 i = dev[0].interfaces 阅读全文
posted @ 2022-12-05 22:39 华小电 阅读(611) 评论(0) 推荐(0)
摘要: -V, --version 显示 Wget 的版本信息并退出。 -h, --help 打印此帮助。 -b, --background 启动后转入后台。 -e, --execute=COMMAND 运行一个‘.wgetrc’风格的命令。 登入并输入文件: -o, --output-file=FILE 阅读全文
posted @ 2022-12-04 12:32 华小电 阅读(72) 评论(0) 推荐(0)
摘要: 1. https://hexed.it/ 2. 上传sublime_text,按下面的修改 DesciptionOffsetOriginalPatched Initial License Check 0x003A31F2 55 41 57 41 48 31 C0 C3 Persistent Lice 阅读全文
posted @ 2022-11-27 20:10 华小电 阅读(2687) 评论(1) 推荐(2)
摘要: df.to_sql参数介绍: name:SQL表的名称。 con:sqlalchemy.engine.Engine或sqlite3.Connection 使用SQLAlchemy可以使用该库支持的任何数据库。为sqlite3.Connection对象提供了旧版支持。 if_exists:{'fail 阅读全文
posted @ 2022-11-23 20:50 华小电 阅读(4115) 评论(0) 推荐(0)
摘要: 1 一行 For 循环 #For循环在一行mylist = [200, 300, 400, 500] #正常方式 result = [] for x in mylist: if x > 250: result.append(x) print(result) # [300, 400, 500] #一行 阅读全文
posted @ 2022-11-20 16:48 华小电 阅读(107) 评论(0) 推荐(0)
摘要: pandas.DataFrame 进行新增列操作的五种方法:insert、reindex、loc、obj[‘col’]、concat。 data: a b c 0 1 2 3 1 4 5 6 2 7 8 9 一、insert 方法 使用 pandas 的 insert 方法,第一个参数指定插入列的位 阅读全文
posted @ 2022-11-06 10:50 华小电 阅读(2099) 评论(0) 推荐(0)
摘要: 1.双y轴绘制 关键函数:twinx() # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from matplotlib import rc rc('mathtext', default='regu 阅读全文
posted @ 2022-10-21 09:07 华小电 阅读(304) 评论(0) 推荐(0)
摘要: ####UI文件 # -*- coding: utf-8 -*- from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, QMetaObject, QObject, QPoint, QRect, QSize, 阅读全文
posted @ 2022-10-20 21:22 华小电 阅读(686) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt from scipy.optimize import curve_fit import numpy as np def func(x, a, b, c): # 拟合的方程 return a * np.exp(-b * x) + c de 阅读全文
posted @ 2022-10-17 10:35 华小电 阅读(564) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页