Python
beijingbuaaer
这个作者很懒,什么都没留下…
展开
-
[Python] How to Open Zip File in Host Location.
We know, if we use the requests to open the url of the zip file and open it, obviously, it will take quite a long time.For instancedef getZIP(zipFileName): r = requests.get(zipFileName).conten原创 2016-07-22 15:20:12 · 389 阅读 · 0 评论 -
Difference Between List and Tuples
Difference Between List and Tuples原创 2016-07-28 16:57:49 · 267 阅读 · 0 评论 -
Python的多版本如何处理--请使用pyenv
这里,该作者写的很清晰,具体的机制请看原文ClickMe归根溯源的讲,这里ClickHere是github上的英文原版,而且为了简化安装,竟然很贴心的自动化写了一个安装工具,curl一下就可以了。但是,我这里补充英文作者一点,安装完了,会提示WARNING: seems you still have not added 'pyenv' to the load转载 2016-07-18 21:56:57 · 822 阅读 · 0 评论 -
Majority Vote
Majority Vote, sorted(), operator.itemgetter()原创 2016-07-29 20:04:35 · 287 阅读 · 0 评论 -
[Python]--The Difference append() vs. extend()
List methodextend()append()+=原创 2016-08-01 09:36:48 · 204 阅读 · 0 评论 -
Python中的lambda和Map混合运用
lambda in pythonmap() in pythonBothsosampleinfo["month"] = map(lambda x: x.month, sampleinfo.date)will put all of the sampleinfo.date value to x function, which will get all the mont转载 2016-07-21 16:23:59 · 701 阅读 · 0 评论 -
[Python]--What are the differences between numpy arrays and matrices?
What are the differences between numpy arrays and matrices?转载 2016-08-04 21:58:25 · 271 阅读 · 0 评论