一些轮询操作

(1) dictionary

      用 method item()可以同时得到key和value

      image

(2) 用emurate轮询List可以同时得到索引和值

(3) 假如需要同时轮询两个或多个序列,可以使用zip()

      image

(4) 如果需要反向轮询,可以用reversed

      image

posted on 2017-08-08 15:11  freshair_cn  阅读(318)  评论(0编辑  收藏  举报

导航