摘要: if condition: statement elif condition: statement else: statement for item in array: use item 在使用for时修改序列是不安全的,需要在副本中迭代,这样再修改序列就没事了 array[:]可用来生成副本 range(start,end) 默认步长为1 range(start,end,step) 注意 end 不包括在内 list() for item in array: else: pass 占位: 1)什么都不做2)最小类3)函数实体占位... 阅读全文
posted @ 2012-05-10 23:24 Orcus 阅读(247) 评论(0) 推荐(0)