会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
太晓
知识的岛屿越大,无知的海岸线越长。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
10
下一页
2022年9月7日
python 常用包安装备查
摘要: # 指定版本的opencv pip install opencv_contrib-python==3.4.3.18 # pywin32 [win32gui,win32api,win32con...] pip install pypiwin32
阅读全文
posted @ 2022-09-07 09:45 太晓
阅读(25)
评论(0)
推荐(0)
2022年9月2日
QT C++ 备查
摘要: 输出调试信息 #include <iostream> using namespace std; cout << "msg" << endl; 按钮点击事件绑定Lambda表达式创建的匿名函数 #include <QPushButton> connect(ui->btn1, &QPushButton:
阅读全文
posted @ 2022-09-02 09:57 太晓
阅读(15)
评论(0)
推荐(0)
2022年8月31日
Petalinux 常用命令
摘要: 基本设置 # 设置 bash 为默认 sh # 打开终端 # 输入命令,Configuring dash 选择“No”,回车确认 sudo dpkg-reconfigure dash # 加载petalinux环境 source /opt/pkg/petalinux/settings.sh # 向终
阅读全文
posted @ 2022-08-31 10:46 太晓
阅读(451)
评论(0)
推荐(0)
2022年8月2日
Oracle Start With 备查
摘要: select * from table t where t.a = 'value' start with t.v in ('v1','v2','v3') connect by [nocycle] prior t.v = t.p
阅读全文
posted @ 2022-08-02 17:13 太晓
阅读(16)
评论(0)
推荐(0)
2022年6月30日
Python AES加密
摘要: pip install pycryptodome==3.14.1 import base64 # AES CBC加密 from Crypto.Cipher import AES BLOCK_SIZE = 16 # Bytes vi = '0102030405060708' def pad(s): r
阅读全文
posted @ 2022-06-30 13:30 太晓
阅读(267)
评论(0)
推荐(0)
Python tempfile 临时文件流
摘要: ``` import tempfile _file_data = bytes('文件数据') _temp_file = tempfile.NamedTemporaryFile() _temp_file.write(_file_data) # 保存 _temp_file.flush() # 指针指向文
阅读全文
posted @ 2022-06-30 13:21 太晓
阅读(59)
评论(0)
推荐(0)
Django filter operators
摘要: operators = { 'exact': '= %s', 'iexact': 'LIKE %s', 'contains': 'LIKE BINARY %s', 'icontains': 'LIKE %s', 'regex': 'REGEXP BINARY %s', 'iregex': 'REGE
阅读全文
posted @ 2022-06-30 09:30 太晓
阅读(28)
评论(0)
推荐(0)
2022年6月29日
Django 基于 rest_framework 的 jwt 用户身份验证, 附带分页
摘要: 参考 https://pythondjango.cn/ requirement django==3.2 djangorestframework==3.13.1 djangorestframework-jwt==1.11.0 pycryptodome==3.14.1 settings.py # 替换用
阅读全文
posted @ 2022-06-29 13:36 太晓
阅读(114)
评论(0)
推荐(0)
2022年6月27日
Nginx 配置备查
摘要: 坑点: 结尾必须加分号 # 服务节点 server { listen 27182; # 服务端口 server_name 192.168.2.108; # 服务地址 root html; # 应用文件根路径 # 首页节点, 根节点 location / { # 重定向配置 try_files $ur
阅读全文
posted @ 2022-06-27 09:58 太晓
阅读(27)
评论(0)
推荐(0)
2022年6月24日
Mysql 备查
摘要: -- mysql 8.0 改 root 密码 select host,user,plugin,authentication_string from mysql.user; alter user 'root'@'localhost' identified with mysql_native_passw
阅读全文
posted @ 2022-06-24 09:25 太晓
阅读(19)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
10
下一页
公告