Linux基本命令--目录的相关操作 常见的处理目录的命令吧: cd:变换目录 pwd:显示目前的目录 mkdir:创建一个新的目录 rmdir:删除一个空的目录 cd (变换目录) cd是Change Directory的缩写,这是用来变换工作目录的命令。注意,目录名称与cd命令之间存在一个空格。...
分类:
其他好文 时间:
2014-12-16 11:41:38
阅读次数:
209
首先明确字符串,数字和元组作为函数参数时是不可变的,但是列表和字典等数据结构却是可以改变的。defchange(n):
n[0]=‘apple‘
names=[‘banana‘,‘pear‘]
n=names[:]
change(n)
printnames,n
[‘banana‘,‘pear‘][‘apple‘,‘pear‘]修改后让原始列表保持不变。假设现在要编写一个存..
分类:
编程语言 时间:
2014-12-16 06:35:10
阅读次数:
279
Tween公式 4个参数t:current time(当前时间)b:beginning value(初始值)c: change in value(变化量)d:duration(持续时间) return (目标点) 1 var Tween = { 2 linear: function (t...
分类:
其他好文 时间:
2014-12-15 15:00:37
阅读次数:
238
执行CHANGE MASTER TO master_host............后报错ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the M...
分类:
数据库 时间:
2014-12-15 15:00:12
阅读次数:
250
select DISTINCT human.tid,log_pv_change.systafftid from human left join human_user on human.tid=human_user.hid left join human_house on human.tid = hu...
分类:
其他好文 时间:
2014-12-15 10:14:40
阅读次数:
176
无法返回引用数据传递包括两种,返回值和参数。很可惜,newlisp的返回值只进行值拷贝,也就是返回副本,并没有方法返回引用。那么看看参数吧,通过参数有两种方法传递引用,一种是通过使用单引号,比如:单引号symbol传递参数引用(define (change-list aList) (push 999 (eval aList)))
(set 'data '(1 2 3 4 5))
; note...
分类:
其他好文 时间:
2014-12-14 20:02:05
阅读次数:
247
题意没弄懂,还有就是没有考虑特殊情况0,导致我贡献了7次WA,感谢茂茂的提醒
Coin Test
时间限制:3000 ms | 内存限制:65535 KB
难度:1
描述
As is known to all,if you throw a coin up and let it droped on the desk there are usually th...
分类:
其他好文 时间:
2014-12-14 09:29:00
阅读次数:
237
2014中国大数据技术大会 会议记录:1、落地、跨界、效率、领导见面就谈大数据;2、大数据成为主流产业需要5到10年;3、数据是表象,实质是问题;4、Doug Cutting:Fuel for change:data, EDH, Style catches on:ecosySystem, the Data Multi-Tool, Cloudera; 1、白皮书,发展趋势;2、融合,跨界,基础,突破...
分类:
其他好文 时间:
2014-12-13 20:36:12
阅读次数:
246
题目:给你五个面值的货币1,5,10,25,50,问表示N有多少种不同方法。
分析:dp,多重背包。整数拆分用背包。
说明:打表计算,查询输出。
#include
#include
using namespace std;
int F[7490] = {0};
int c[5] = {1,5,10,25,50};
int main()
{
F[0] = 1;
for (int...
分类:
其他好文 时间:
2014-12-13 13:31:05
阅读次数:
125
vectorVectors are sequence containers representing arrays that can change in size.Just like arrays, vectors use contiguous storage locations for their...
分类:
编程语言 时间:
2014-12-13 13:20:52
阅读次数:
367