Review: 6 Python IDEs go to the mat
Of all the metrics you could use to gauge the popularity and success of a language, one surefire factor is the number of development environments available for it. python’s rise in popularity over the...
View ArticleControlling 4DSystems Diablo16 and Picaso displays from Python
Afew week ago I had a really good time testing 4DSystems 4Duino-24 board . One of the things I noticed is that the Serial Command Set interface is really flexible. You can easily drive the display...
View Article给Python函数执行前后添加额外行为
给python函数执行前后添加额外行为 2016.10.19 17:46:04 以前想在函数前后添点啥额外功能(比如过滤、计时等)时,总是首先想到装饰器。比如这个计量所花费时间的程序: from functools import wraps, partial from time import time def timing(func=None, frequencies=1): if func is...
View ArticleBuilding RESTful APIs With Flask: ORM Independent
In thefirst partof this three-part tutorial series, we saw how to write RESTful APIs all by ourselves using Flask as the web framework. In thesecond part, we created a RESTful API using Flask-Restless...
View ArticleTommorow FOSSASIA meets PyLadies Pune
Tommorow FOSSASIA meets PyLadies Pune Posted: 2016-10-19T19:15:15+05:30 |Source | More posts about fossasia PyLadies python Tomorrow we have a special PyLadies meetup at the local Red Hat office. Hong...
View Articlepython模块之logging
在现实生活中,记录日志非常重要。银行转账时会有转账记录;飞机飞行过程中,会有黑盒子(飞行数据记录器)记录飞行过程中的一切。如果有出现什么问题,人们可以通过日志数据来搞清楚到底发生了什么。对于系统开发、调试以及运行,记录日志都是同样的重要。如果没有日志记录,程序崩溃时你几乎就没办法弄明白到底发生了什么事情。举个例子,当你在写一个服务器程序时,记录日志是非常有必要的。下面展示的就是...
View Article[Python]-16-正则表达式基础
引言 正则表达式不是python语法的一部分,它是独立的用于处理字符串的强大工具,在支持正则表达式的语言里,正则表达式是通用的,这篇文章介绍Python中的re模块,它提供了常用的正则表达式语法支持。 文章目录 0×1.正则表达式基本语法 正则表达式的基本语法对于支持它的编程语言都是通用的,下面是一些常用语法与说明: 字符匹配: ● . :(英文句点)匹配任意单个字符(换行符\n除外); ● \...
View ArticleSending HTML emails with embedded images from Django
Currently I'm working on an application which sends HTML emails with embedded or inline images and multiple CSV and PDF attachments. Let's assume that we will be using an object containing data for our...
View Articlepython之八大排序方法
一、插入排序 1 #-*- coding:utf-8 -*- 2 ''' 3 描述 4 插入排序的基本操作就是将一个数据插入到已经排好序的有序数据中,从而得到一个新的、个数加一的有序数据,算法适用于少量数据的排序,时间复杂度为O(n^2)。 5 是稳定的排序方法。插入算法把要排序的数组分成两部分:第一部分包含了这个数组的所有元素,但将最后一个元素除外(让数组多一个空间才有插入的位置), 6...
View ArticleOpenCV with Python Blueprints' first anniversary: Giveaway
A year ago today, Packt Publishing Ltd. released OpenCV with python Blueprints , my first technical book on computer vision and machine learning using the OpenCV library. To celebrate this 1-year...
View ArticlePython内置函数(6)――bool
英文文档: class bool ([ x ]) Return a Boolean value, i.e. one of True or False . x is converted using the standard truth testing procedure . If x is false or omitted, this returns False ; otherwise it...
View ArticleWhy K&R C is a Must-Read
In 1988 Brian Kernighan and Dennis Ritchie released the 2nd edition of "The C Programming Language" (better known as "K&R C"), a must-read for any serious programmer. It is praised in reviews ,...
View ArticleFixing Python Performance with Rust
Sentry processes over a billion errors every month. We’ve been able to scale most of our systems, but in the last few months, one component has stood out as a computational chokepoint: python’s source...
View ArticleNumPy Tutorial: Data analysis with Python
NumPy is a commonly used python data analysis package. By using NumPy, you can speed up your workflow, and interface with other packages in the Python ecosystem, like scikit-learn , that use NumPy...
View ArticlePython 模块:更有逻辑地组织你的Python代码段
模块让你能够有逻辑地组织你的python代码段。 把相关的代码分配到一个 模块里能让你的代码更好用,更易懂。 模块也是Python对象,具有随机的名字属性用来绑定或引用。 简单地说,模块就是一个保存了Python代码的文件。模块能定义函数,类和变量。模块里也能包含可执行的代码。 例子...
View ArticleEpilepsy Detection Using EEG Data
In this example we’ll use the cesium library to compare various techniques for epilepsy detection using a classic EEG time series dataset from Andrzejak et al. . The raw data are separated into five...
View Article总结:常用的 Python 爬虫技巧
作者: j_hao104 用python也差不多一年多了,python应用最多的场景还是web快速开发、爬虫、自动化运维:写过简单网站、写过自动发帖脚本、写过收发邮件脚本、写过简单验证码识别脚本。 爬虫在开发过程中也有很多复用的过程,这里总结一下,以后也能省些事情。 1、基本抓取网页 get方法 post方法 2、使用代理IP 在开发爬虫过程中经常会遇到IP被封掉的情况,这时就需要用到代理IP;...
View Article2016最新百度云网盘搜索引擎源码,附带Python爬虫+PHP网站+Xunsearch搜索引擎
源码简介 : 适用范围:百度云网盘 搜索引擎 源码,百度 搜索引擎 源码,网盘搜索 爬虫 源码 演示地址:(以截图为准) 运行环境:php、mysql 其他说明:分享的是一款 搜索引擎 源码,百度云盘 爬虫 源码,python百度云网盘 搜索引擎 , 爬虫 +网站,搜索引擎采用Xunsearch高效搜索,源码很简单,附带安装教程,可二开,这里吾爱免费分享给大家,全自动更新百度云盘内容,全自动采集哦!...
View ArticlePython for loops
It’s always interesting to explain a new programming language to students. python does presents some challenges to that learning process. I think for loop can be a bit of a challenge until you...
View ArticlePython内置函数(8)――bytes
英文文档: class bytes ( [ source [, encoding [, errors ] ] ] ) Return a new “bytes” object, which is an immutable sequence of integers in the range 0 <= x < 256 .is an immutable version of it has the...
View Article