Python 笔记(2) -- Control Flow
摘要:
[Src: Python 2.5 Document]1. if-statement与C/C++不同的是,Python中 if 或 elif 要以 : 结尾[代码]2. for-statement iterates over the items of any sequence(a list or a string)[代码]若要修改序列中的内容,就只能在序列的副本上遍历。这里只能修改list的内容[代... 阅读全文
posted @ 2008-09-03 19:00 should 阅读(277) 评论(0) 推荐(0) 编辑