I like Python! Concessions of a Java Developer
Contents Developing with python was a refreshing and pleasant experience. After workingwith Java for a while, you may forget how verbose and clumsy this language sometimes is. But Python shows how...
View ArticlePython V.S R语言?在数据分析与挖掘方面该选哪一个?
什么是R语言? R语言,一种自由软件编程语言与操作环境,主要用于统计分析、绘图、数据挖掘。R本来是由来自新西兰奥克兰大学的罗斯伊哈卡和罗伯特杰特曼开发(也因此称为R),现在由“R开发核心团队”负责开发。R基于S语言的一个GNU计划项目,所以也可以当作S语言的一种实现,通常用S语言编写的代码都可以不作修改的在R环境下运行。R的语法是来自Scheme。...
View ArticleCatalin George Festila: The python CacheControl module - part 001.
This tutorials series want to be a better approach to understand the several mechanisms that HTTP provides for web cache validation. Let's start with the first part. You can install it with pip...
View Articlehypothesis.works articles: Seeking funding for deeper integration between...
Probably the number one complaint I hear from Hypothesis users is that it “doesn’t work” with py.test fixtures.This isn’t true, but it does have one very specific limitation in how it works that...
View ArticleJSON Web Tokens in django application- part one
Recently I attended a workshop about web security. During these hours I learnt quite a lot but one thing got my attention- JWT. Based on that I decided to write a blog post series about how to use JSON...
View Article2016 Week 40 Roundup
这周恰逢国庆假期,休息了两天(感觉今天貌似也在休息),明天学校断电断网(大农村条件艰苦),所以应该要出去一天,暂时的行程还没有安排。 编程 总结 首先收到了 HACKxFDU 的通过邮件,所以 14 号会去上海打一波酱油,以目前的水平如果不抱大腿感觉完全没有拿奖的可能性。主要的目的应该不是去参赛,可能会去找找下学期实习的目标,顺便认识一些大牛("g%
View ArticleA Dramatic Tour through Python’s Data Visualization Landscape (including...
Why Even Try, Man? Irecently came upon Brian Granger and Jake VanderPlas’s Altair, a promising young visualization library. Altair seems well-suited to addressing python’s ggplot envy, and its tie-in...
View ArticleEditor's Note - Everything I Need to Know I Learned in Monty Python and the...
Be pragmatic: Everyone told the King of Swamp Castle that he was “daft to build a castle on a swamp,” and sure enough, his first attempt sank into the muck. “So I built a second one,” he says. “That...
View ArticlePython workshop at Pune Institute of Computer Technology
The month of September was destined to be busy with the goodman out for his share of conferences. Nevertheless, my family rallied and the grandparents took complete charge of the monster-in-making. I...
View ArticleDijkstra’s Algorithm in Python
Dijkstra’s algorithm is one of the key algorithms we hear about within computer science. It can be slightly less accessible to beginners because you have to know what a weighted, directed graph is....
View ArticleExperienced Django: A Few Interesting Recommendations
I want to pass on a couple of recent recommendations that have come my way. Weekly python Chat Weekly Python Chat is run by Trey Hunner who does a weekly live chat covering python topics. Trey has been...
View ArticleWhy Python Coders Are So In-Demand Around the Globe
At some point in your life, you decided you wanted to be a programmer. At around the same time, you started having dreams of working in huge, employee friendly and highly paying companies such as...
View Article一张萌图告诉你:5步让你成为爬虫高手!
一张萌图告诉你:5步让你成为爬虫高手! 一点号复旦大数据昨天 互联网创业离不开数据,如果能自己做个数据爬虫,那岂不是一件很美好的事情吗?其实自己做数据挖掘不是梦,学点python的基本功能,5步就能让你成为一个爬虫高手! php?url=0EZwjVpccm" alt="一张萌图告诉你:5步让你成为爬虫高手!" />回复下列数字即可获得相应干货下载: 1:一百多篇大数据文档下载!...
View Article第一期 如何理解Flask中的蓝图?
正常情况下,入门Flask框架都是从写一个单文件,然后看到页面显示 Hello,World! 开始的。这个单文件一般命名hello.py或run.py。 你会在单文件中写一些路由,比如首页的、列表页的、详情页的,就像我博客这么简单的页面结构,完全可以一个文件搞定。 # -*- coding: utf-8 -*- # run.py from flask import Flask,...
View ArticlePYTHON爬虫之旅系列教程之【利用Python开发微信公众平台<四>】
大家国庆节快乐,我又来更新了~ 本讲将是本专题 利用python开发微信公众平台 的最后一讲。下一讲将是新专题: 爬取“链家网”长沙小区房地产数据,并对长沙房地产信息做数据挖掘与分析 。下一专题将于微信公众号【 蚍蜉尔 】首发,欢迎大家的关注,谢谢! 题外话,我的知乎专栏:PYTHON挖掘机已经开通,大家可以关注下,以方便文章的及时提醒与查看。 本系列课程讲述“ PYTHON爬虫之旅...
View Article写在Python前
python是用C编写的一种解释型语言,和shell一样,变量可以直接使用,而且就像C中的宏替换,但是Python同样支持进行底层的调用,可以很容易的和各种语言进行融合,俗称"胶水语言",常用于软件早期的快速成型。Python的设计原则之一就是尽可能的提高代码的可读性,所以在C/C++中的作用域 {}...
View ArticleMotor 0.7 Beta With Pymongo 2.9 And A Threaded Core
Please try the beta release of Motor 0.7 and let me know how it works for you: python -m pip install motor==0.7b0 Documentation: Motor beta documentation Motor 0.7 changelog In two ways, Motor 0.7...
View ArticleUnderstanding Python Class Instantiation
Let’s say you have a class Foo : class Foo(object): def __init__(self, x, y=0): self.x = x self.y = y What happens when you instantiate it (create an instance of that class)? f = Foo(1, y=2) That call...
View ArticleEstimating the Effort of Development of a Django Application
This is a very common problem that every developer will eventually face at some point. Your boss or a client comes with a set of requirements and asks you to estimate how long it will take to implement...
View Article字符串,数值计算
python是一种面向对象的语言,但它不像C++一样把标准类都封装到库中,而是进行了进一步的封装,语言本身就集成一些类和函数,比如print,list,dict etc. 给编程带来很大的便捷 Python 使用#进行单行注释,使用 ''' 或 """ 进行多行注释 数值计算 >>> print "One hour has", 60 * 60 , "seconds" One...
View Article