摘要: Itisnotsafetomodifythesequencebeingiteratedoverintheloop(thiscanonlyhappenformutablesequencetypes,suchaslists).Ifyouneedtomodifythelistyouareiteratin... 阅读全文
posted @ 2012-12-30 19:59 完美视界 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Python’sforstatementiteratesovertheitemsofanysequence(alistorastring),intheorderthattheyappearinthesequence. 阅读全文
posted @ 2012-12-30 19:43 完美视界 阅读(210) 评论(0) 推荐(0) 编辑