void Awake(){CanvasScaler canvasScaler = GetComponent<CanvasScaler>();float screenWidthScale = Screen.width / canvasScaler.referenceResolution.x;float ...
分类:
其他好文 时间:
2018-01-18 19:32:20
阅读次数:
156
Python3 中可以使用 json 模块来对 JSON 数据进行编解码,它包含了两个函数: json.dumps(): 对数据进行编码。 json.loads(): 对数据进行解码。 在json的编解码过程中,python 的原始类型与json类型会相互转换,具体的转化对照如下: Python 编 ...
分类:
编程语言 时间:
2018-01-18 16:57:03
阅读次数:
193
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2018-01-18 15:01:37
阅读次数:
118
1.springmvc 官网参考地址: https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html 2. springmvc 的介绍 Spring Web MVC是基于Servlet API构建的原始W ...
分类:
编程语言 时间:
2018-01-18 01:00:45
阅读次数:
211
引用是什么 在 PHP 中引用意味着用不同的名字访问同一个变量内容。这并不像 C 的指针,替代的是,引用是符号表别名。注意在 PHP 中,变量名和变量内容是不一样的,因此同样的内容可以有不同的名字。最接近的比喻是 Unix 的文件名和文件本身——变量名是目录条目,而变量内容则是文件本身。引用可以被看 ...
分类:
Web程序 时间:
2018-01-16 18:37:49
阅读次数:
185
Hash Tables — associations between keys and values so that given a key the value can be found quickly Hash Tables — associations between keys and valu ...
分类:
其他好文 时间:
2018-01-16 18:08:45
阅读次数:
179
加载asset bundle的时候出现Could not produce class with ID XXX的错误 在asset 文件夹下建一个Link的XML,内容如下: <?xml version="1.0" encoding="utf-8"?><linker> <assembly fullna ...
分类:
编程语言 时间:
2018-01-16 13:54:01
阅读次数:
818
第一章用户登陆终端Shell介绍执行命令简单命令bash快捷键用户登陆root超级用户,权限大普通用户,权限有限。终端tty显示当前终端的终端名shell介绍shell人机交互的语言windowsshellpowershelldoslinuxunixlikeshbash(default)rhel/suse/ubuntu/fedora/debian/macOSkshcshzshnologinmobi
分类:
系统相关 时间:
2018-01-15 11:06:17
阅读次数:
284
```c // To add a reference to the system.Web using System.Web.Security; ... /// /// SHA1 The encrypted string /// /// The source string /// The encryp ...
分类:
其他好文 时间:
2018-01-15 00:19:36
阅读次数:
150
Next challenges: Android Unlock Patterns Maximum XOR of Two Numbers in an Array Maximum Vacation Days 思路:动态规划。 两种分解方法: count[i]表示的是i的二进制表示中1的个数。 1.cou ...
分类:
其他好文 时间:
2018-01-15 00:19:29
阅读次数:
191