上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 59 下一页
摘要: 单纯脚本的形式 Django server PYTHONUNBUFFERED=1;DJANGO_SETTINGS_MODULE=pleasure-boat.settings 人肉敲命令 阅读全文
posted @ 2023-09-28 15:48 vx_guanchaoguo0 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 安装失败 主要原因是 pip源 使用索引为官方 使用清华源 设置如下 pip install -r requirements.txt \ --extra-index-url https://download.pytorch.org/whl/cu117 \ -i https://pypi.tuna.t 阅读全文
posted @ 2023-09-27 12:02 vx_guanchaoguo0 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 磁盘至于 265G 打开一看 系统数据是 105G 删除多余的数据 设置->通用->存贮 清除缓存 sudo rm -rf ~/Library/Caches/* 阅读全文
posted @ 2023-09-27 11:35 vx_guanchaoguo0 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 首先使用大家推荐的 zbar mac m2 python 3.8 安装无法解析动态库 安装 arch -arm64 brew install zbar python 使用 from pyzbar.pyzbar import decode from PIL import Image if __name 阅读全文
posted @ 2023-09-26 12:09 vx_guanchaoguo0 阅读(127) 评论(0) 推荐(0) 编辑
摘要: why ? 为什么需要workspace 历史发展和版本依赖的管理 GOPATH 最开始的模式 开发者需要设置一个环境变量 GOPATH,用于指定项目的工作空间。GOPATH 是一个目录路径,其中包括了三个重要的子目录:src、bin 和 pkg 通过 go get 命令,GOPATH/src 下的 阅读全文
posted @ 2023-09-25 14:40 vx_guanchaoguo0 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 生成二维码 def make_qrcode(data: str, path: str): qr = qrcode.QRCode( version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=10, border=4 ) 阅读全文
posted @ 2023-09-22 18:11 vx_guanchaoguo0 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 查询订单的 定金+支付金额 -支付金额 错误写法 Order.objects.aggregate( sum=Sum(F('final_amt') + F('deposit_amt') - F('refund_amt')) ) ) 正确的信息 Order.objects.aggregate( sum= 阅读全文
posted @ 2023-09-22 09:06 vx_guanchaoguo0 阅读(8) 评论(0) 推荐(0) 编辑
摘要: java package com.example; import org.springblade.core.tool.utils.*; import javax.annotation.Nullable; import javax.crypto.Cipher; import javax.crypto. 阅读全文
posted @ 2023-09-21 18:01 vx_guanchaoguo0 阅读(45) 评论(0) 推荐(0) 编辑
摘要: java 代码 package com.example.trip_vip; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import javax.crypto.Cipher; import jav 阅读全文
posted @ 2023-09-21 18:00 vx_guanchaoguo0 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 先说结论 就是指针引用和非指针引用 调用没啥区别的 golang 会做自动转换 将指针转为非指针调用 代码演示 package main import "fmt" type T struct { Name string } func (p *T) SetName(name string) { p.N 阅读全文
posted @ 2023-09-15 08:49 vx_guanchaoguo0 阅读(190) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 59 下一页