上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
  2022年2月22日
摘要: 给List<Vector2>排序一般有两种场景,一种时给处在同一条直线上的点进行排序,另一种是给多边形的顶点进行排序。 1、给直线上的点排序 我这里实现的逻辑是,首先给定直线上的两个点start和end,List<Vector2>按start到end的方向,从小到大排序。 可以看下这个测试示例: v 阅读全文
posted @ 2022-02-22 20:12 Jason_c 阅读(399) 评论(0) 推荐(0) 编辑
  2021年12月16日
摘要: 手写不易,点赞支持,支持纯手工,转载请标明出处 using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Threadin 阅读全文
posted @ 2021-12-16 11:26 Jason_c 阅读(680) 评论(0) 推荐(0) 编辑
  2021年12月14日
摘要: Python打包出exe后运行发现总是报OSError: Could not find lib geos_c.dll or load any of its variants缺少geos_c.dll的错误, 而且非常奇怪,直接运行Python文件不报错,打出来的exe就报错,考虑是依赖没有打进去, 解 阅读全文
posted @ 2021-12-14 10:48 Jason_c 阅读(2514) 评论(0) 推荐(0) 编辑
  2021年12月9日
摘要: 1、首先安装pyinstaller,不会安装的参考上一篇文章https://www.cnblogs.com/Jason-c/p/15666406.html 2、打开cmd,将/Scripts/pyinstaller.exe拖到cmd上 3、后面输入-F 4、再将要打包exe的.py文件拖到cmd上, 阅读全文
posted @ 2021-12-09 11:57 Jason_c 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 1、使用pip命令安装google.protobufpip install --index https://pypi.mirrors.ustc.edu.cn/simple/ protobuf 2、国内镜像 https://pypi.douban.com/simple/ 豆瓣https://mirro 阅读全文
posted @ 2021-12-09 11:39 Jason_c 阅读(360) 评论(0) 推荐(0) 编辑
  2021年12月8日
摘要: 当判断条件有三种状态时,又不想使用枚举可以使用bool? 例: bool? isA=true;//三种状态:true,false,null if(isA==null) {} else { if((bool)isA) {} else {} } //或者 if(isA.HasValue) { if(is 阅读全文
posted @ 2021-12-08 15:24 Jason_c 阅读(283) 评论(0) 推荐(0) 编辑
  2021年11月20日
摘要: 1、部署云函数 在 cloud-functions/login 文件夹右击选择 “上传并部署”所以文件 和 依赖环境 在 cloud-functions/uploadScore 文件夹右击选择 “上传并部署”所以文件 和 依赖环境 2、修改环境id 在miniprogram/js/main.js文件 阅读全文
posted @ 2021-11-20 15:39 Jason_c 阅读(210) 评论(0) 推荐(0) 编辑
  2021年11月11日
摘要: 通过shader将照片水平、垂直方向镜像翻转,比通过Texture2D逐像素操作快多了 Shader "Unlit/Mirror" { Properties { _MainTex ("Texture", 2D) = "white" {} _MirrorU("水平镜像翻转",float)=0 _Mir 阅读全文
posted @ 2021-11-11 19:46 Jason_c 阅读(2666) 评论(0) 推荐(0) 编辑
摘要: 磁盘空间不足?查找大文件夹或大文件? 无意的中Get一款神器 WizTree 简直就是理想型的查找大文件的软件,速度快,而且还免费 官网下载地址:https://www.diskanalyzer.com/ 阅读全文
posted @ 2021-11-11 15:07 Jason_c 阅读(670) 评论(0) 推荐(0) 编辑
  2021年11月6日
摘要: function getBaseLog(x, y) { return Math.log(y) / Math.log(x); } // 2 x 2 x 2 = 8 console.log(getBaseLog(2, 8)); // expected output: 3 // 5 x 5 x 5 x 5 阅读全文
posted @ 2021-11-06 19:44 Jason_c 阅读(275) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页