PyCon: PyCon will be underway in just two months ― and is nearly sold out!
It seems hard to believe, but two months from today PyCon2017 will be underway in Portland! Attendees will be enjoying a full day of scheduled talks, self-organized Open Spaces, and visits to our many...
View ArticleDeploying the Rupture attack
Rupture is a framework for conducting compression side-channel attacks. The Rupture attack performs a Man in the Middle (MitM) attack to inject javascript code to a targeted victim located on the...
View ArticleDaniel Bader: Python’s Functions Are First-Class
python’s Functions Are First-Class by Dan Bader ― Get free updates of new posts here . Python’s functions are first-class objects. You can assign them to variables, store them in data structures, pass...
View ArticleWingware News: Wing Python IDE 6.0.3: March 21, 2017
Wingware has released version 6.0.3 of its family of cross-platformpython IDEs with powerfully integrated editing, debugging, unit testing, and project management features. Wing runs on windows,...
View ArticlePython比较2个时间的大小
python比较2个时间的大小 Python中有time和datetime,不过二者都直接取出日期和时间。 当需要比较2个时间的先后时,这两个类的函数都显得有些过于复杂。因为它们都带上了日期。 如果仅想比较时间,取出当前时间会带有日期信息,而指定比较的目标时间时还要给日期部分赋值。那个time_struct,一大堆的参数。赋值感觉很麻烦哦。...
View Articlectypes中使用WindowFromPoint
ctypes中使用WindowFromPoint ctypes是一大利器,为python调用c库函数、dll使用等提供了极大的便利。 但是使用ctypes下的函数遇到一些复杂的数据类型传参时怎么使用对接的数据类型呢。...
View Article一个简单的文件传输验证码识别C/S实现
大体思路 client通过tcp向server传输一个待识别的验证图片,server端识别后通过tcp回传给client。 server端识别验证码采用pytesseract。 环境:server/python3.5/Ubuntu1604,client/Qt5.3/win7。 1、文件传输 tcp很多人都很熟悉,经常用来传递数据。但如何用于传递文件呢。尝试过的同学可能知道常见的有这么几个问题:...
View ArticlePython爬虫之入门篇
文章目录 [隐藏] WPJAM TOC python爬虫之入门篇 什么是爬虫? A Web crawler, sometimes called a spider, is an Internet bot which systematically browses the World Wide Web, typically for the purpose of Web indexing (web...
View Articlepython--文件处理
在python中如果想对硬盘中的一个文件进行操作大概可以分为三步,它的流程如下: 1、使用open函数打开一个文件句柄,并且赋值给一个变量。 2、通过相应的文件句柄对指定的文件进行操作 3、操作完成后关闭文件,文件关闭后,会将文件内容写入到磁盘中。 open函数的使用方法如下。 open(‘文件路径’,mode=‘打开文件的模式‘,encoding='文件编码方式')...
View ArticleHosting Django Sites on Amazon Elastic Beanstalk
Introduction Amazon Web Services (AWS)' Elastic Beanstalk is a service that bundles up a number of their lower-level services to manage many details for you when deploying a site. We particularly like...
View ArticleDjango小试牛刀
上面我们讲解了,如何安装Django,接下来我们就开始编写第一个Django应用。 和其他的大多数教程一样我们使用一个Blog的列子来讲解。 它包含两部分: 一个公开的网站,展示你的博客给其他人看的 一个后台管理系统,你可以添加、修改和删除博客 说明:实际上Django的有时也就在于此,前文我们也说过自带后台管理系统是他的一大特色。 一点感想...
View ArticleReading and Writing to text files in Python
python provides inbuilt functions for creating, writing and reading files. There are two types of files that can be handled in python, normal text files and binary files (written in binary language,0s...
View ArticlePython coding interview challenges
April 2017 - Huge Update! Overhauledto now include 120 challenges and solutions and addedAnki Flash Cards. Also included are unit tested reference implementations of variousdata...
View ArticleWhy modules raising core exceptions mostly hurts, not helps, your users
A while back I wrote an entry about how modules should never raise core python exceptions . Recently via my Referer logs I found out that some people aren't convinced by my entry , so I feel like...
View ArticleMinPy: The NumPy Interface upon MXNet’s Backend
Machine learning is now enjoying its golden age. In the past few years, its effectiveness has been proved by solving many traditionally hard problems in computer vision and natural language processing....
View ArticleMike Driscoll: PyDev of the Week: Russell Keith-Magee
This week we welcome Russell Keith-Magee as our PyDev of the Week! Russell is a core Django developer and former president of the Django software Foundation. He has been a contributor to the open...
View Article如何成为年薪百万AI工程师?他用Python分析213份招聘需求
如何成为年薪百万AI工程师?他用python分析213份招聘需求 一点号数据玩家2017.3.23 限时干货下载:添加微信公众号“数据玩家「fbigdata」” 来源:AI时代 全球人工智能 人工智能技术在各行各业中的应用越来越普及,专业技术人才越发供不应求,各大公司不惜重金招募AI专业方面的人才。据统计显示,AI相关职位平均年薪达到30-60万元,从业时间长的甚至能达到年薪百万。...
View Article十四步从零开始到掌握Python机器学习
十四步从零开始到掌握python机器学习 一点号数据玩家2017.3.26 限时干货下载:添加微信公众号“数据玩家「fbigdata」” 回复【2】免费获取【完整数据分析资料!(包括SPSS、SAS、SQL、EXCEL、Project)!】 作者:Matthew Mayo 编译:机器之心(id:almosthuman2014) 转载请联系原译者...
View Article用Scrapy shell调试xpath
昨日一道友问我会不会用scrapy shell检查xpath,我表示没搞过,都是直接在代码里硬怼,尴尬。然而其实也没什么难的,在这记录一下方法。 首先还是安利一下国内翻译的 scrapy文档 ,虽然最新的翻译版本是1.0版,scrapy已经出到1.3版,但是这份文档仍然非常好用,只是有些版本差异带来的小坑。 在命令行键入 scrapy shell 进入scrapy...
View Article