摘要: r = [x*x for x in range(10)] r list类型 阅读全文
posted @ 2016-07-04 09:56 Echo/ 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.迭代器:对象在其内部实现了iter(),__iter__()方法,可以用next方法实现自我遍历。 二.python正则表达式 1.python通过re模块支持正则表达式 2.查看当前系统有哪些python模块:help('modules') help():交互式模式,支持两种方式调用(交互式模 阅读全文
posted @ 2016-07-04 09:45 Echo/ 阅读(6956) 评论(1) 推荐(0) 编辑