series: [{ data: [{'color':'#F6BD0F','y':11}, {'color':'#AFD8F8','y':12}, {'co...
分类:
其他好文 时间:
2015-04-25 22:24:23
阅读次数:
224
当你需要编写大型程序时,你可能想要写一段代码供其它地方调用,或者将程序中的相同逻辑抽出来,这时你就需要用到函数。但函数不仅能提供这些功能,通过使用函数还能帮助我们更容易的理解代码。
定义函数
下面的代码定义了一个函数fib,用于计算Fibonacci数列:
>>> def fib(n):
"""Print a Fibonacci series up to n."""
a,...
分类:
编程语言 时间:
2015-04-23 15:41:54
阅读次数:
187
1.对于INTRODUCTION TO JQUERY SERIES这个站点的学习
1)第五集的内容,说的是怎么选择到你想要的地方
选择attribute这个在src后面加了$,表示以什么结尾
Css3 selectors
Api.jquery.com
PS:(Drupal 里面禁止让$来代替JQuery,因为这样会有冲突,所以在drupal里面,可以使用这样的方式来调用)...
分类:
Web程序 时间:
2015-04-22 13:53:53
阅读次数:
144
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to ...
分类:
其他好文 时间:
2015-04-21 00:25:31
阅读次数:
138
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ...
分类:
其他好文 时间:
2015-04-20 16:43:17
阅读次数:
94
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ...
分类:
其他好文 时间:
2015-04-20 16:17:37
阅读次数:
144
最近公司做的项目有用到Highcharts 中的柱状图,Highcharts官网给出的范例中series属性的值是固定的: 而我做的项目需要给series赋的值是动态地从数据库取的,这样的话可以事先将取到的值转化为Json格式的数据,然后再给series赋值。代码如下:var JsonSer...
分类:
其他好文 时间:
2015-04-20 14:45:26
阅读次数:
386
早上到公司第一件事变成了刷leetcode,发现各种题目的各种解法,真心是个挺有趣的过程。比如今天早上碰到的这个DNA序列的问题,一开始完全没有头绪,但是后来看了些文章发现,真的是二进制大法好啊!会了二进制,走遍天下都不怕啊。原题如下:
All DNA is composed of a series of nucleotides abbreviated as A, C, G,
and T,...
分类:
其他好文 时间:
2015-04-20 13:14:15
阅读次数:
159
Sencha's Guide to JavaScript Style and Best Practices Sencha's Guide to JavaScript Style and Best PracticesThe following document contains a series o....
分类:
Web程序 时间:
2015-04-19 12:57:00
阅读次数:
151
http://blog.csdn.net/gisfarmer/article/details/3736452Chart饼状图,每根柱子的宽度:int a = Chart1.Series["Series1"].Points.Count; Chart1.Series["Series1"].CustomP...