摘要: 1、先将取出来的16进制卡号颠倒如F3 0C 4F 06转成06 4F 0C F3 (注意物理卡号是第0扇区的前4个字节) 2、将转换后的16进制卡号转成10进制,不足10位左补0 代码实现: //调用: GetM1CardNo("F30C4F06"); 1 private string GetM1 阅读全文
posted @ 2022-11-02 10:33 ziff123 阅读(395) 评论(0) 推荐(0)
摘要: Vue3 刷新一下Vuex里的store存储内容会被清空掉 解决办法: 在App.vue里面将store存储到sessionStorage里面,页面刷新时在取出来 1 <script setup> 2 3 import { useStore } from 'vuex'; 4 5 6 let stor 阅读全文
posted @ 2022-10-28 17:08 ziff123 阅读(662) 评论(0) 推荐(0)
摘要: YOLOV5打开本地摄像头报AttributeError: ‘Upsample’ object has no attribute 'recompute_scale_factor’错误 处理方式: 1、打开报错的这个目录文件upsampling.py 将 def forward(self, input 阅读全文
posted @ 2022-10-27 09:27 ziff123 阅读(478) 评论(0) 推荐(0)
摘要: 我装的版本是Anaconda3-5.2.0-Windows-x86_64.exe 1、打开cmd输入 conda config --set show_channel_urls yes 2、会在C:\用户\登录的用户 (我的目录是 C:\Users\27183)目录底下生成一个文件.condarc 用 阅读全文
posted @ 2022-10-27 09:10 ziff123 阅读(290) 评论(0) 推荐(0)
摘要: CefSettings settings = new CefSettings(); CefSharpSettings.WcfEnabled = true; settings.CefCommandLineArgs.Add("autoplay-policy", "no-user-gesture-requ 阅读全文
posted @ 2022-10-25 17:21 ziff123 阅读(623) 评论(0) 推荐(0)
摘要: 1、安装Anaconda3-5.2.0-Windows-x86_64.exe 2、利用Anaconda创建运行环境py38 使用命令,具体操作自行百度 conda create -n py38 python=3.8 3、在Anaconda3-5.2.0-Windows-x86_64.exe的安装目录 阅读全文
posted @ 2022-10-14 09:43 ziff123 阅读(498) 评论(0) 推荐(0)
摘要: 1、引入router : import {useRouter} from 'vue-router' 2、定义 let router = useRouter(); 3、动态添加路由 router.addRoute({name:"users", path: '/User/users', componen 阅读全文
posted @ 2022-10-13 14:02 ziff123 阅读(1129) 评论(0) 推荐(0)
摘要: net core6 webapi接口返回JSON字段首字母自动转成小写,可以在Program.cs里面加 builder.Services.AddControllers().AddJsonOptions(options => { options.JsonSerializerOptions.Prope 阅读全文
posted @ 2022-10-01 16:12 ziff123 阅读(616) 评论(0) 推荐(0)
摘要: <script setup> let addFormVisible = ref(false); function handleAdd(){ addFormVisible = true; //没有生效 } </script> 定义了一个变量 addFormVisible用来控制页面对话框的显示, 在方 阅读全文
posted @ 2022-09-18 10:52 ziff123 阅读(957) 评论(0) 推荐(0)
摘要: 解决办法: 用记事本打开INI文件,点击菜单栏文件-->另存为-->编码选择UTF-8,然后保存就可以了。 C#操作INI工具类: 1 using System; 2 using System.Runtime.InteropServices; 3 using System.Text; 4 using 阅读全文
posted @ 2022-09-13 15:07 ziff123 阅读(169) 评论(0) 推荐(0)