matplotlib画图教程
Matplotlib是一个非常有用的python绘图库。 简单绘图 # 创建多项式 1*x^2+0*x+0 >>> func = poly1d(array([1,0,0]).astype(float)) # 一阶导数 >>> func1 = func.deriv(1) # 在-10,10之间产生100个均匀分布的数值 >>> x =...
View ArticleWhat happens when you import modules in Python
I’ve been using python for a number of years now but like most things I didn’t really understand this until I investigated it. Firstly let’s introduce what a module is, this is one of Python’s...
View Articlepython下载整个ftp目录
过了明天就是国庆了,周围的小伙伴也都早早安排好,该回家的回家,该旅游的也已出发,这几天朋友圈基本都是晒照片的,据官方预测,估计未来几天会持续刷屏,其实看看照片还挺好,真到了那未必有照片好看,想想去年10.1长城人山人海拥挤的那个短视频,我就果断放弃了北京周边游的计划,过了10.1,...
View Articleenum in Python
Enumerations in python are implemented by using the module named “ enum “.Enumerations are created using classes . Enums have names and values associated with them. Properties of enum: 1.Enums can be...
View ArticleDive into a new coding career with the Python Power Coder training, now over...
Want to earn a six figure salary? Consider training for a career in the exciting field of computer programming with The python Power Coder Bonus Bundle , offered to Android Community readers at more...
View ArticleSeptember 2016 Newsletter: Need Some AI? Yeah, There’s a Marketplace for That
We’re excited to share that WIRED featured Algorithmia in an article earlier this month that looked at our efforts to democratize access to AI. :memo: From the Blog This month we show you how to build...
View ArticleHelping our new Data Scientists start in Python: A guide to learning by doing
The Data Science team at Greenhouse Group is steadily growing and continuously changing. This also implies new Data Scientists and interns starting regularly. Each new Data Scientist we hire is unique...
View Article【Python】教你编写网络爬虫
1.网络爬虫何时有用 假设我有一个鞋店,并且想要及时了解竞争对手的价格。我可以每天访问他们的网站,与我店铺中鞋子的价格进行对比。但是,如果我店铺中的鞋类品种繁多,或是希望能够更加频繁地查看价格变化的话,就需要花费大量的时间,甚至难以实现。再举一个例子,我看中了一双鞋,想等它促销时再购买。我可能需要每天访问这家鞋店的网站来查看这双鞋是否降价,也许需要等待几个月的时间,我才能如愿盼到这双鞋促销。上述这...
View ArticleNeural Network implementation in Python using numpy [for beginners]
MNIST Handwritten Digit Classifier An implementation of multilayer neural network using python's numpy library. The implementation is a modified version of Michael Nielsen's implementation in Neural...
View ArticleDeploy Flask with a Celery task queue and Flower dashboard using Kubernetes
In this article, we walkthrough the steps to deploy a simple Flask app integrated with Celery , an asynchronous task queue based on message passing. It makes uses RabbitMQ and/or Redis as the message...
View ArticlePython网页框架资源集合,包括Django、Flask、Tornado等(长期更新,欢迎补充)
Django Django - Django。 Django-allauth - 集成了国内大部分oauth2.0社交网站账号。 Channels - Channels旨在增强Django的异步能力,同时让Django不仅仅局限于Request-Response模型,能够支持WebSocket、HTTP2推送和背景任务。 Django-Baker - Django...
View Article杂谈:(菜鸟如我)用哪些轮子?
其实对于普通人来说,不用分析那么多模型,用各种机器学习库就可以了。再者,对于我们这些小白来说,经常写算法写的不6,一个模型写下来循环多得不得了,测一下时间和复杂度,用人家的库,10秒解决的问题,自己编写的模型,有可能俩小时还没跑出来(别问我怎么知道的……)。 那么问题来了,用什么库? 个人是用python,这里推荐几个常用的……估计大家都知道,不过不知道的可以试着去用一下。...
View ArticlePython字符串输入输出简述
字符串输入 python用到的输入一般有两种方式, input() 和 raw_input() ,区别是,前者只能输入数字,后者输入的是字符串,使用如下: In [226]: help(input) Help on built-in function input in module __builtin__: input(...) input([prompt]) -> value...
View ArticleImport Python: ImportPython Issue 92 - django-perf-rec track django...
Worthy Read python alias commands that play nice with virtualenv Over the years, I’ve come up with my own Python aliases that play nice with virtual environments. For this post, I tried to stay as...
View Article写个抓取网易云音乐精彩评论的爬虫
标题有点长啊。 其实写爬虫是一个很微小的事情, 在 12年 和 14年 ,我却单靠这2个爬虫获得了offer,所以爬虫真的算python工程师的必修课。这2个爬虫其实都很cute,现在看起来有很多地方其实理解的不够深入,也有一些实现地方做的不好,但是毕竟是当时的我,就保留着吧。...
View ArticlePyTennessee: PyTN 2017 Kickoff
Hello everyone! It’s time to kick off the lead up to a great PyTN 2017! I’m very excited about this year event, and I hope you are as well. I’m pleased to welcome a few new organizers to this year’s...
View ArticleHow many lines of code is Candy Japan?
If you would rather listen to me speak, I also have this as a 14 minute YouTube version . Here in Japan there are many unique sweets which are not sold in other countries, so I started a site called...
View ArticlePython -- 让你的代码运行的更快的技巧
python -- 让你的代码运行的更快的技巧 昨天来源:伯乐在线 注:个人学习记录用。建议大家看原文,原文对比更加清晰,一目了然。 注:各位要使用这些技巧的话,请在自己的服务器上测试一遍,并且加大测试的数值,目前的用例都是 10 W 次,我们可以测试 100 W , 1000 W 次。。。。 注:如果测试的性能相差不多,请以可读性为主。平台运行测试的平台环境: >>>...
View ArticleActivePapers: hello, world
License: CC-BY ActivePapers is a technology developed by Konrad Hinsen to store code, data and documentation with several benefits: storage in a single HDF5 file, internal provenance tracking (what...
View Article[python拾遗]文件操作
文件操作 1.open()函数 open()函数主要用于文件处理,一般分为下面3个过程: 1.打开文件 2.操作文件 3.关闭文件 常见的格式示例: f = open('note.txt','r')f.read()f.close() 1.打开文件 文件句柄 = open('文件路径','模式') 常见的模式有: 1.‘r’,只读...
View Article