Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Browsing all 9596 articles
Browse latest View live

列表

python是一种面向对象的语言,但它不像C++一样把标准类都封装到库中,而是进行了进一步的封装,语言本身就集成一些类和函数,比如print,list,dict etc. 给编程带来很大的便捷 Python中列表有点像C中的数组,list里面可以承载不同的数据类型,而且封装了常用的方法用于对list的操作,Python列表索引的下标默认是从第0个开始的,即 lia[0]...

View Article


Image may be NSFW.
Clik here to view.

Python 邮箱爆破

按照师傅给的任务,写了一个企业邮箱的爆破脚本,后续还有FTP,SSH等一些爆破的脚本。 我先说下整体思路: 总体就是利用python的poplib模块来从pop3服务器上交互,根据获取的相关信息,产生结果。POP3协议并不复杂,它也是采用的一问一答式的方式,你向服务器发送一个命令,服务器必然会回复一个信息. 首先验证参数是否正确...

View Article


Multi-Line Lambdas in Python

I need to preface all of this with a disclaimer:I love python, but I am able to see plenty of faults with it. In this article, I attempt to provide a very roundabout way of working around one of those...

View Article

Image may be NSFW.
Clik here to view.

4 can't-miss Python goodies from Microsoft, Google, Facebook, and Uber

Open source software is already a good development, but open source software with the backing of a household name in IT is even better. Big-name outfits work with python due to its versatility and wide...

View Article

Image may be NSFW.
Clik here to view.

Hadoop Streaming: Writing A Hadoop MapReduce Program In Python

The quantity of digital data generated every day is growing exponentially with the advent of Digital Media, Internet of Things amongother developments. This scenario has given rise to challenges...

View Article


Mike Driscoll: PyDev of the Week: Bryan Van de Ven

This week we welcome Bryan Van de Ven ( @bigreddot ) as our PyDev of the Week! Bryan is a core developer of the Bokeh project, which is a visualization package for python. He has also helped with the...

View Article

Image may be NSFW.
Clik here to view.

Using IBridgePy to implement Python in Interactive Brokers API

By Hari Kumar Krishnamoorthy In the previous article on IBPy Tutorial to implement python in Interactive Brokers API , I talked about Interactive Brokers, its API and implementing Python codes using...

View Article

How to Use Python to Find the Zipf Distribution of a Text File

You might be wondering about the term Zipf distribution . To understand what we mean by this term, we need to define Zipf's law first.Don't worry, I'll keep everything simple. Zipf's Law Zipf's law...

View Article


Doug Hellmann: gettext ― Message Catalogs ― PyMOTW 3

The gettext module provides a pure-python implementation compatible with the GNU gettext library for message translation and catalog management. The tools available with the Python source distribution...

View Article


Using Docker to develop and deploy Django apps

Finally, Django, with Docker, on production! I finally managed to deploy Django in a Docker container on production! I’ve been trying to switch to a full Docker development/production model since...

View Article

The python CacheControl module - part 002.

Today was a hard day and this is the reason I make this short tutorial. Teory of HTTP: HTTP specifies four response cache headers that you can set to enable caching: Cache-Control Expires ETag...

View Article

Image may be NSFW.
Clik here to view.

Exfiltrating files with BusyBox

This is a super quick post on a simple method to exfiltrate data from systems running BusyBox , a shell commonly used on embedded devices. Such systems often lack common tools, presenting a challenge...

View Article

Image may be NSFW.
Clik here to view.

Working with SQLite Databases using Python and Pandas

SQLite is a database engine that makes it simple to store and work with relational data. Much like the csv format, SQLite stores data in a single file that can be easily shared with others. Most...

View Article


Image may be NSFW.
Clik here to view.

Scrapy 1.2.0 发布,web 爬虫框架

Scrapy 1.2.0 发布了。 Scrapy 是一套基于基于Twisted的异步处理框架,纯python实现的爬虫框架,用户只需要定制开发几个模块就可以轻松的实现一个爬虫,用来抓取网页内容以及各种图片。 更新内容: 新特性 New FEED_EXPORT_ENCODING setting to customize the encoding used when writing items to a...

View Article

Python和Go的字符串拼接操作

在python中String显然是不可变类型,但解释器(指CPython,下同)遇到形如 str_x += str_y 或者 str_x = str_x + str_y的表达式,还是会取巧得改变String的值,但要求很严格:左值没有被其他表达式引用,且满足二元操作. s = ''for i in range(100000): s += 'test' # or s = s + 'test'#Out:...

View Article


A pure Python impl of TextRank for document summarization

python impl for TextRank A pure Python implementation of TextRank , based on the Mihalcea 2004 paper. Leading toward integration with the Text Summarization example by Mike Williams. Modifications to...

View Article

Image may be NSFW.
Clik here to view.

用Python统计 新浪微博 各种表情使用频率

用python统计 新浪微博 各种表情使用频率 一点号数据玩家4小时前 限时干货下载:添加微信公众号“数据玩家「fbigdata」” 回复【7】免费获取【完整数据分析资料!(包括SPSS、SAS、SQL、EXCEL、Project)!】...

View Article


Image may be NSFW.
Clik here to view.

Python系列之――zzcms漏洞挖掘到exp编写

作者:奶权 0X00 前言: 今天无聊想找个cms来白盒审计一下 练练手 于是就跑去站长之家看了一下 轻量级的 那么就是他了 0X01 白盒审计 下载下来安装后 直接扔进法师大牛的源代码审计系统 很快就定位到一个文件的一段sql代码 文件位置:zs/contrast.php 代码片段: $id=''; if(!empty($_POST['id'])){ for($i=0;...

View Article

Image may be NSFW.
Clik here to view.

Python科学计算与数据分析库/包大全

astropy - A community python library for Astronomy. 一个面向天文学的Python社区库 bcbio-nextgen - A toolkit providing best-practice pipelines for fully automated high throughput sequencing analysis....

View Article

Image may be NSFW.
Clik here to view.

Introduction to Machine Learning with Python

出版时间:2016.9 官网链接: O’Reilly 下载地址: 百度网盘(PDF+EPUB+MOBI) 内容简介: Machine learning has become an integral part of many commercial applications and research projects, but this field is not exclusive to large...

View Article
Browsing all 9596 articles
Browse latest View live