如果 d:\upload\file\ 文件夹不存在,会报错 String strPath = "d:\\upload\\file\\2.mp3"; File file = new File(strPath); if(!file.exists())){ file.createNewFile(); } ...
分类:
编程语言 时间:
2020-02-24 00:54:43
阅读次数:
97
做游戏的时候相机是我们的直接感官,相机的跟随方式严重关系到游戏的体验。我们最常用的跟随方式是 transform.position = Vector3.Lerp(transform.position, GetTargetPos(player), deltaTime * speed); transfo ...
分类:
编程语言 时间:
2020-02-24 00:02:42
阅读次数:
98
使用javafx实现视频播放器 代码地址:https://github.com/JiaDingCN/JavaMediaPlayer 本项目是基于项目https://github.com/Al assad/Simple Media Player进行修改的,向原作者的工作致敬 功能介绍 本地视频播放 在 ...
分类:
编程语言 时间:
2020-02-23 22:37:49
阅读次数:
549
mac上有什么好的投屏软件嘛?苹果手机ios投屏到mac用哪款投屏软件,mac投屏ipad该用哪款软件怎么操作,macdown小编给大家介绍的这几款Mac投屏软件,各有各的特色,总有一款适合你投屏。 1.AirServer 7 for Mac 第一款,AirServer 7 for Mac,使用简单 ...
分类:
系统相关 时间:
2020-02-23 18:08:57
阅读次数:
806
ES6 模块的设计思想是尽量的静态化,使得编译时就能确定模块的依赖关系,以及输入和输出的变量。CommonJS 和 AMD 模块,都只能在运行时确定这些东西。比如,CommonJS 模块就是对象,输入时必须查找对象属性。 // CommonJS模块 let { stat, exists, readF ...
分类:
其他好文 时间:
2020-02-23 16:28:36
阅读次数:
70
Quick pow is very important and basics. 法一(递归法): 先举个栗子: 求2 ^10? 我们将它分为下面五步: 2^10 = 2^5 * 2^5 2^5 = 2 * 2^4 2^4 = 2^2 * 2^2 2^2 = 2^1 * 2^1 2^1 = 2 * 2 ...
分类:
其他好文 时间:
2020-02-23 15:00:27
阅读次数:
127
Set集合 sadd key element[element...] 向集合中添加元素 exists key 是否存集合 srem key element[element...] 删除集合0-n个元素 scard key 计算元素个数 sismember key element 判断元素是否在集合中 ...
分类:
其他好文 时间:
2020-02-23 14:53:35
阅读次数:
61
1/启动Nacos服务 下载nacos服务端,有多种方式,这里以windows平台1.2.0.beta.1编译后的压缩包单机模式为例,更多方式参考:https://nacos.io/zh-cn/docs/quick-start.html 下载解压之后到nacos->bin->startup.cmd, ...
分类:
其他好文 时间:
2020-02-23 11:50:35
阅读次数:
239
造板子 求最小原根 复杂度 $O(n^{1/4} \log n)$ ...
分类:
其他好文 时间:
2020-02-23 11:47:49
阅读次数:
67
mssql是.NET的标配,一般使用.NET的人基本都用mssql。 以前mssql只能支持windows平台,从微软打出 拥抱开源 的口号开始,mssql的2017 版本,开始支持linux系统。 一开始,我是直接在centos中安装mssql的,总的来说,比windows快很多。但是现在都使用容 ...
分类:
数据库 时间:
2020-02-23 11:37:13
阅读次数:
105