06 2022 档案

摘要: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 太晓 阅读(273) 评论(0) 推荐(0)
摘要:``` import tempfile _file_data = bytes('文件数据') _temp_file = tempfile.NamedTemporaryFile() _temp_file.write(_file_data) # 保存 _temp_file.flush() # 指针指向文 阅读全文
posted @ 2022-06-30 13:21 太晓 阅读(73) 评论(0) 推荐(0)
摘要: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 太晓 阅读(38) 评论(0) 推荐(0)
摘要:参考 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 太晓 阅读(144) 评论(0) 推荐(0)
摘要:坑点: 结尾必须加分号 # 服务节点 server { listen 27182; # 服务端口 server_name 192.168.2.108; # 服务地址 root html; # 应用文件根路径 # 首页节点, 根节点 location / { # 重定向配置 try_files $ur 阅读全文
posted @ 2022-06-27 09:58 太晓 阅读(32) 评论(0) 推荐(0)
摘要:-- 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 太晓 阅读(21) 评论(0) 推荐(0)
摘要:# 找程序 whereis xxxx # 查进程 ps -A | grep django # 杀进程 pkill xxxx kill -9 [pid] # 提权限 chmod 777 xxxx # 查端口使用 netstat -antlp # 查摄像头信息 v4l2-ctl -d /dev/vide 阅读全文
posted @ 2022-06-22 21:32 太晓 阅读(53) 评论(0) 推荐(0)