- 博客(4)
- 收藏
- 关注
转载 python 练习题 1
做一些python的练习题 看到豆瓣上有一个python的面试题~其中一个简单的题目先练习一下,题目为: 请写出一段Python代码实现删除一个list里面的重复元素 代码如下 foriinlist: whilelist.count(i)>=2:...
2016-03-15 11:16:00 236
转载 python 中 with as 语句
somefile=open(r'somefileName') try: forlineinsomefile: printline #...morecode finally: some...
2016-02-29 23:49:00 102
转载 python map()函数和reduce()函数的区别
map()函数解释是: map(...) map(function, sequence[, sequence, ...]) -> list Return a list of the results of applying the function to the it...
2016-02-23 13:10:00 86
转载 第一篇博客
classHotDog: def__init__(self): self.cooked_level=0 self.cooked_string="raw" self.condiments=[] def__str__...
2016-02-17 13:15:00 79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人