摘要:
>>> # Fibonacci series: ...# the sum of two elements defines the next ... >>> a, b = 0, 1 >>> while b < 10: print(b) a, b = b, a+b 第一行,变量 a和b同時获得新的值0和1在下面的也是同时获得,这样恰... 阅读全文
posted @ 2010-04-08 18:35
走到天亮
阅读(412)
评论(0)
推荐(0)
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>#Replacesomeitems:...a[0:2]=[1,12]>>>a[1,12,123,1234]>>>#Removesome:..... 阅读全文
posted @ 2010-04-08 17:11
走到天亮
阅读(755)
评论(0)
推荐(0)
浙公网安备 33010602011771号