上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页
摘要: select ...into outfile语法是mysql提供的一种数据导出的方案,支持自定义导出数据格式。 例如:将test表的所有数据全部导出到test.txt文件。 select * from test into outfile '/tmp/test.txt'; 更常用的方法是将表数据导出成 阅读全文
posted @ 2022-12-16 21:04 华小电 阅读(527) 评论(0) 推荐(0)
摘要: 我现在用的是Debian11,按照网上搜到的方法在Crontab里定时执行python脚本,可是没有反应 网上的方法大多是: */1 * * * * python 文件路径+文件名 或者是 */1 * * * * /usr/bin/python 文件路径+文件名 尝试以后,都不能用。 发现只有在当前 阅读全文
posted @ 2022-12-14 21:27 华小电 阅读(338) 评论(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 华小电 阅读(606) 评论(0) 推荐(0)
摘要: -V, --version 显示 Wget 的版本信息并退出。 -h, --help 打印此帮助。 -b, --background 启动后转入后台。 -e, --execute=COMMAND 运行一个‘.wgetrc’风格的命令。 登入并输入文件: -o, --output-file=FILE 阅读全文
posted @ 2022-12-04 12:32 华小电 阅读(67) 评论(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 华小电 阅读(2653) 评论(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 华小电 阅读(4087) 评论(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 华小电 阅读(96) 评论(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 华小电 阅读(2076) 评论(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 华小电 阅读(279) 评论(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 华小电 阅读(681) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页