golang中,字符切片[]byte转换成string最简单的方式是 打印信息:I am byte array ! 上面的代码bytes在这里修改了数据,但是str打印出来的依然没变化,是因为[]byte的内存被拷贝了。接着看下面的代码 打印信息:i am byte array ! 现在打印出来的信 ...
分类:
其他好文 时间:
2017-02-03 23:55:42
阅读次数:
689
X.U.I don't want nobody to get killed I'll come and get you I am always ready to fight So don't take all of the blame We are all as bad Ah wait don't ...
分类:
其他好文 时间:
2017-02-03 10:46:55
阅读次数:
194
Eventually, you will learn to cry on the inside. 终有一天,你得学会让眼泪在心里流。 Cry on the inside. I am tired, and I think that I can't hold on it any longer. I tr ...
分类:
其他好文 时间:
2017-01-27 23:44:52
阅读次数:
331
Description 脸哥最近在玩一款神奇的游戏,这个游戏里有 n 件装备,每件装备有 m 个属性,用向量zi(aj ,.....,am) 表示 (1 <= i <= n; 1 <= j <= m),每个装备需要花费 ci,现在脸哥想买一些装备,但是脸哥很穷,所以总是盘算着 怎样才能花尽量少的钱买 ...
分类:
其他好文 时间:
2017-01-27 18:41:40
阅读次数:
225
设:○为一种运算且与集合V构成群,a∈V,e为○运算的幺元。 (群有4大性质:1.运算封闭性,2.满足结合律,3.有幺元,4.有逆元) 即e满足对于任意的a,有 e○a=a○e=a 我们可以记 a0=e an=an-1○a 则有以下性质 an+m=an○am 则此时计算a关于○运算的n次幂的快速幂可 ...
分类:
其他好文 时间:
2017-01-21 10:56:38
阅读次数:
179
初始化gitgitinitgitadd.//将项目里所有文件都添加到上传列表gitcommit-m"init"gitremoteaddoriginhttp://xxx.xxx/xxx/xxx.gitgitpush-uoriginmastercat~/.gitconfig查看当前用户信息gitcommit-am"init"提交并且加注释gitcommit-a提交当前repository下当前分支的所有改变gitpul..
分类:
其他好文 时间:
2017-01-20 13:20:33
阅读次数:
140
shell echo命令 显示普通字符串: echo "I am cat_crazy.'" 注:这里的双引号可以省略 显示转义字符: 如果要输出引号,*号等需要转义才能输出,如下 echo \"我是cat_crazy\" 输出结果是 "我是cat_crazy" 注:引号需要转义才能输出 显示变量: ...
分类:
系统相关 时间:
2017-01-17 14:03:29
阅读次数:
205
What hardware do you use? I am using a Lemote Yeelong, a netbook with a Loongson chip and a 9-inch display. This is my only computer, and I use it all ...
分类:
其他好文 时间:
2017-01-11 10:02:06
阅读次数:
134
整理了下网上的资料,归类了下,大似表述是这样的:IBM/PC兼容机,也就是Intel的i80x86指令架构,就简称了x86。x86并不是指32位环境,而是指80x86架构,这个架构目前有32位,64位两种。曾经听说还包括了过8位和16位,不过我没机会看过。 习惯上来说,x86架构就是32位的,但AM ...
分类:
其他好文 时间:
2017-01-11 09:12:55
阅读次数:
158