Python变量解析变量:可变化数据对象的程序标示符,变量指向某个数据单元,变量的变化是指向的地址变化,类似指针,所以定义变量不需要声明数据类型,不能通过变量改变变量的值,只能重新通过变化指向C语言中的变量变量的内容可以变,地址是不能变化的,已经申明地址不能改变例子>>> help(id)Help ...
分类:
编程语言 时间:
2014-07-18 16:05:12
阅读次数:
297
Python输出语句print函数print()函数基本使用 打印整形数据 打印浮点型数据 打印字符型数据>>> print(12)12>>> print(12.5)12.5>>> print('B')B>>> print('WWW.baidu.com')WWW.baidu.com...
分类:
编程语言 时间:
2014-07-18 15:38:09
阅读次数:
259
DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to ...
分类:
其他好文 时间:
2014-07-18 15:28:57
阅读次数:
234
Sorting It All Out
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 26866
Accepted: 9267
Description
An ascending sorted sequence of distinct values...
分类:
其他好文 时间:
2014-07-18 11:33:31
阅读次数:
294
js跳转路径问题
在项目中用JS做跳转,发现ff和ie中出现不一致现象。
无论是window.location.href还是window.open,
@ie中跳转以当前路径开始跳转
@ff中跳转以根目录开始
if (document.all||!!window.ActiveXObject){ //判断是否是...
分类:
Web程序 时间:
2014-07-18 11:32:09
阅读次数:
275
Python 收集Twitter时间序列数据...
分类:
编程语言 时间:
2014-07-18 11:21:15
阅读次数:
239
Moving Objects(1)
* 功能:Moving Objects
* 时间:2014年7月17日08:46:45
* 作者:cutter_point
*/
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
/*****************...
分类:
编程语言 时间:
2014-07-18 11:16:47
阅读次数:
286
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314
http://bbs.chinaunix.net/thread-1680208-1-1.html如何找出 python list 中有重复的项http://www.cnblogs.com/feisky/archive/2012/12/06/2805251.html比较容易记忆的是用内置的setl1 ...
分类:
编程语言 时间:
2014-07-18 09:39:20
阅读次数:
512
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-07-18 09:37:55
阅读次数:
161