摘要: 小测试 in del.py import datetime cur = datetime.datetime.now() num = 1 a_list = {"a":1, "b":2, "c":3} while num < 100000: if "a" in a_list: pass num += 1 阅读全文
posted @ 2016-02-12 21:24 jihite 阅读(24101) 评论(0) 推荐(0) 编辑
摘要: 概述 append和extend针对python的列表 列表内的元素为对象,可以为数字、字符串、列表等等 append添加的是一个对象 extend添加一个列表 例子 append >>> append_list = [] >>> append_list.append(1) >>> append_l 阅读全文
posted @ 2016-02-12 20:25 jihite 阅读(1427) 评论(0) 推荐(0) 编辑