摘要: 这本书看什么? 能收获什么,作者的python经验,语言语法经验,语言实用技巧。还有作者想给我们推荐的一种编码思想,就是pythonic,这个东西是什么呢?我目前的理解就是用python的语法糖去简化代码逻辑,最终达到简单不简陋。 整理自己觉得有用的技巧,但是不会按照他的点来排序。 ##ASCII码 阅读全文
posted @ 2021-02-06 14:27 leilei199441 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-03 16:00 leilei199441 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 了解python 1.python -编译->字节码-解释字节码,字节码是跟平台无关的(c的完全编译->二进制代码,intel芯片的指令)所以比c,c++慢,这也是python最大的缺点了。 2.python解释器,代码-解释器-计算机硬件(安装py之后,有一个解释器跟库,所以需要运行纯py代码,必 阅读全文
posted @ 2020-08-31 21:22 leilei199441 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 用dynamic字段的时候,跟非动态字段操作的时候会有这个报错 Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create 解决方式: 将Api Compatibility Le 阅读全文
posted @ 2020-04-03 13:37 leilei199441 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1.注册苹果ID,地区选择任意美国 2.Ios手机拔掉手机卡,或者备用机 登录刚刚注册的苹果id,然后登记个人信息,格式一样即可 3.商店搜索Tictok下载 4.然后下载VPN ,自己找也可以 5.开启VPN,然后打开Tiktok,完成 阅读全文
posted @ 2020-03-11 17:49 leilei199441 阅读(21) 评论(0) 推荐(0) 编辑
摘要: IOError: No wkhtmltopdf executable found: "" 从https://wkhtmltopdf.org/downloads.html下载wkhtmktopdf安装 import pdfkit config = pdfkit.configuration(wkhtml 阅读全文
posted @ 2020-03-09 15:05 leilei199441 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEngine.EventSystems; 5 6 7 public class UIRaycastPas 阅读全文
posted @ 2019-12-28 00:42 leilei199441 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEngine.UI; 5 6 public class RaycastTargetGizmos : Mo 阅读全文
posted @ 2019-12-28 00:35 leilei199441 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 在项目中信号系统(或者事件系统)用的非常多,而且很好用,我喜欢用于全局信号,用于不同系统之间的交互,加上MVC,ECS模块的内部信号。 以下列出实现的内容: SignalCenter:全局的信号中心用于交互不同系统之间的消息 EntitySignal(下面没有,实际上就是换个名字,并且不是静态类): 阅读全文
posted @ 2019-12-28 00:12 leilei199441 阅读(157) 评论(0) 推荐(0) 编辑
摘要: using Newtonsoft.Json 读取:JsonConvert.DeserializeObject<Dictionary<float,int>>(filepath) // Resources 路径下 写入:string = JsonConvert.SerializeObject( xxx 阅读全文
posted @ 2019-07-11 20:32 leilei199441 阅读(124) 评论(0) 推荐(0) 编辑