编写易维护的python项目
从实习到现在使用python也快两年了,虽然经验依旧不多,不过维护旧项目和开发新项目好歹也都经历过,记录下想法就当年终总结吧。 易编写,难维护 Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live.- John Woods...
View Article【数据分析】工作日发文章比周末发文章访问量高?
本文是一片老文,用python做了一个简单的数据分析,2016年1月发表在 老博客 上,在整理旧文的时候翻了出来,觉得有点价值,故移过来与大家分享一下。 前言...
View ArticleGo Programming Language http
Go Programming Language http Go 因为其性能被很多人青睐,当然和所有语言一样难免也会有让人深恶痛绝的地方。最近在学习这块的东西,鉴于之前仔细了解过python 的TCPServer以及HTTPServer 的实现,本文打算对Go的http 模块做一些简单梳理,以便了解Go语言的一些特性,主要是想从Go的源码中吸收一些代码组织的方法和思路。 Python...
View Article2016 Recap and 2017 Goals
Yet another recap post to follow up onlast year’s. 2015 was a big transition year for me, and last year I wanted to make sure I kept the momentum going. I make this post yearly to publicly track my...
View ArticleHow (Not?) to Use Python’s List Comprehensions
How (Not?) to Use python's List Comprehensions Originally posted Sept. 4, 2016 Everyone knows about the for loop: all_possibilities = range(10) result = [] for x in all_possibilities: if x % 3 == 0:...
View Article最受欢迎的Python开源框架有哪些?
今年年初,有一件科学界的大事儿曾刷爆朋友圈:引力波的发现。这是LIGO首次直接探测到引力波和首次观测到双黑洞碰撞与并合,探测到的引力波是由13亿光年之外的两颗黑洞在合并的最后阶段产生的,经过13亿光年的时空旅行,最后被美国的“激光干涉引力波天文台”(LIGO)的两台孪生引力波探测器探测到的。...
View ArticlePython 量子力学计算模拟以及数据可视化
\ k Pytlab,python 中文社区专栏作者。主要从事科学计算与高性能计算领域的应用,主要语言为Python,C,C++。熟悉数值算法(最优化方法,蒙特卡洛算法等)与并行化 算法(MPI,OpenMP等多线程以及多进程并行化)以及python优化方法,经常使用C++给python写扩展。 blog: http://ipytlab.com github:...
View Article基于 Python 的数据可视化
基于 python 的数据可视化 一点号数据玩家2小时前 限时干货下载:添加微信公众号“数据玩家「fbigdata」” 回复【7】免费获取【完整数据分析资料!(包括SPSS、SAS、SQL、EXCEL、Project)!】 英文:kaggle # 首先载入pandas import pandasaspd # 我们将载入seaborn,但是因为载入时会有警告出现,因此先载入warnings,忽略警告...
View ArticleLooking Back at 2016
We started 2016 with an eye on blowing 2015 out of the water. Mission accomplished. Together with our users, we have crawled more in 2016 than the rest of Scrapinghub’s history combined: a whopping...
View Article2016年度Analytics Vidhya上最火爆的36篇文章和资源
作者 KUNAL JAIN 译者 钱亦欣 引言 时光犹如白驹过隙,又到一年末尾,该做点总结了。(译者注:原文有大量抒情文字,我懒得翻译了。。。) 这篇文章总结了16年度本网站上最火的资源,我们把它们分成了指南,短文,职业文和技能测试四个板块以方便阅读。 如果你是个新人,一定会爱死这篇文章,毕竟这是网站一整年的精华。如果你已经是个专家,你也大可以挑选一些感兴趣的随便翻翻。 别了2016,你好2017...
View Article通俗 Python 设计模式 : 通俗 Python 设计模式――适配器模式
从这篇开始,介绍书中第二种类型的设计模式――结构型模式。结构型模式 主要用于处理系统中不同实体间的关系 ,如 话题与评论 这类场景。今天介绍其中的 适配器模式 。 适配器模式,通俗的说就是设计 接口/api,以保证程序符合 开放/封闭 原则,保持新老代码间的兼容性。 适配器模式在实际开发中的使用 非常频繁...
View ArticleModeling a ChessBoard And Mechanics Of Its Pieces In Python
Hello, Everyone. First of all, Happy New Year 2017. In this year, I sincerly hope success for you, for your friends and family members. This article is going to discuss how python enables us to...
View ArticleLearning Python Getting Started!
Why Do This? python is a simple programming language capable of big things. It features wide support across network devices. There are many reasons that I have decided to learn Python here are just...
View ArticleAutoregression Models for Time Series Forecasting With Python
Autoregression is a time series model that uses observations from previous time steps as input to a regression equation to predict the value at the next time step. It is a very simple idea that can...
View Article揭秘Python(三)
揭秘python(三) 一点号linux运维黑匣子昨天 在经历了Python的介绍与在windows和Linux中如何安装Python后,我们就开始正式的学习Python了。 基本上所有的计算机程序设计语言都有两个量,一个是常量,另一个是变量。同时也可以说基本上所有的计算机程序设计语言都是由这两个量组成的。那么我们就来认识认识这两个量。...
View ArticleBlogging in Review 2016
The site has continued to grow in 2016. Looking back over the prior years it has looked pretty linear the whole time. I take a hit in December, but I almost managed on average 200 site views per day in...
View ArticleJourneys of Lever
Last week I integrated libuv into Lever. So far the decision appears to be good. LibUV interfaces are clean and the library allows me to concentrate important subjects instead of having to worry about...
View ArticleStan 2.14 released for R and Python; fixes bug with sampler
Stan 2.14 is out and it fixes thesampler bug in Stan versions 2.10 through 2.13. Critical update It’s critical to update to Stan 2.14. See: RStan 2.14.1 PyStan 2.14.0.0 CmdStan 2.14.0 The other...
View ArticleSublime Text3配置在可交互环境下运行python快捷键
安装插件 在Sublime Text3下面写代码感觉很不错,但是写python的时候遇到了一些问题。 用Sublime Text3打开python文件,或者在Sublime Text3下写好python代码,使用快捷键ctrl+b就可以运行了,会在当前窗口的下方出现运行的结果。比如 print("hello world!") 但是,要是使用了input这类需要交互的函数,ctrl+b运行就会出现错误...
View Article