Exercise-16 Exercise 16 : String 3Test : 列表、元组和字符串同属于序列属性 共同特点 : 都可以通过索引得到每一个元素 默认索引值从0开始,但是支持负数索引(反向排序) 可以通过分片的方法得到一个范围内的元素集合 有很多共同操作符 2016-08-08 Exercise Python Exercise
Exercise_15 Exercise 15 : String 2Test : sign explanation %c 格式化字符及ASCII码 %s 格式化字符串 %d 格式化整数 %o 格式化无符号八进制数 %x 格式化无符号十六进制数 %X 格式化无符号十六进制数(Capital) %f 格式化定点数,可指定小数点后的精度 %e 用科学计数法格式化定点数 %g 根据值得 2016-08-07 Exercise Python Exercise
Recursion: Hanoi Tower The Tower of HanoiIt consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one r 2016-08-05 Python Python classical mathematics
Recursion: Fibonacci Array Fibonacci ArrayFibonacci array (斐波那契数列)的编程实现 golden section/ratio 黄金分割/比 : 0.618 $A_n = A_{n-1} + A_{n-2} $ $\lim\limits_{n\to \infty} \frac{A_{n-1}}{A_n}=\frac{\sqrt{5}-1}{2} $ $ \begin{eqnarray}F(n) 2016-08-05 Python Python classical mathematics
Practice One Practice OneQuestion 1: How much three-digit number can we get from number 1,2,3,4 ? Here the three-digit number has no duplicate numbers and is not the same as each other. Question 2 : How much three 2016-08-03 Python Python mathematics