摘要:
>>> # 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在下面的也是同时获得,这样恰... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>#Replacesomeitems:...a[0:2]=[1,12]>>>a[1,12,123,1234]>>>#Removesome:..... 阅读全文