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

Introduction to Natural Language Processing with Python

In this talk, Jess Bowden introduces the area of NLP (Natural Language Processing) and a basic introduction of its principles. She uses python and some of its fundamental NLP packages, such as NLTK,...

View Article


Image may be NSFW.
Clik here to view.

Python+Hadoop 从DBLP数据库中挖掘经常一起写作的合作者

任务描述: 本文的写作目的是从 DBLP 数据库中找到经常一起写作的合作者。熟悉数据挖掘中频繁项挖掘的经典算法( FP-Growth )并作出改进和优化。实验代码用python写的,分别在本地(Win8)和Hadoop集群(条件有限,虚拟机上跑的,3个节点)上实现。(下载本文所涉及全部代码 https://github.com/findmyway/DBLP-Coauthor ) 回复此公众号“...

View Article


python如何获取当前时间?

说起计算机中的时间,还有一些比较有意思的事,比如我们经常听到的Unix时间戳,UTC时间,格林威治时间等,从表示上来讲他们基本属于同一个东西,因为他们的时间表示都是从1970年.1月.1日开始到现在的秒数,到这有人就有问题了,为毛是从这个时间点开始的呢?因为这天发生了一件大事,UNIX操作系统诞生了,这UNIX诞生可有来历,他是一个歪果仁利用老婆孩子外出度假一个月的时间来完成的,这就跟linus在下...

View Article

Image may be NSFW.
Clik here to view.

python魔法方法-属性转换和类的表示

类型转换魔法 类型转换魔法其实就是实现了str、int等工厂函数的结果,通常这些函数还有类型转换的功能,下面是一些相关的魔法方法: __int__(self) 转换成整型,对应int函数。 __long__(self) 转换成长整型,对应long函数。 __float__(self) 转换成浮点型,对应float函数。 __complex__(self) 转换成复数型,对应complex函数。...

View Article

Image may be NSFW.
Clik here to view.

[TA Deals] Start learning Python with a 78% discounted bundle

python is a popular and powerful programming language that’s frequently used in development, but like any other language it can be tough to learn from scratch. Fortunately, we’ve got a heavily...

View Article


Image may be NSFW.
Clik here to view.

F5 Python SDK and Kubernetes

It’s been almost a year since my originalarticle that discussed the basics of using the Docker API to configure BIG-IP pool members. This article dives into more details of utilizing the F5 python SDK...

View Article

Image may be NSFW.
Clik here to view.

在PyQt4中使用matplotlib

matplotlib作为python中著名的数据可视化工具,其官网也提供了在PyQt4中使用的源码,这里举一个应用实例,以备不时之需。 1) 利用Qt Designer创建GUI界面 Demo的GUI界面,如图1所示,其中利用QFrame作为放置matplotlib界面的容器。然后调用pyuic4.bat -o ui_maindialog.py maindialog.ui编译UI界面。...

View Article

Image may be NSFW.
Clik here to view.

PyCharm 2016.2 正式发布

PyCharm 2016.2 正式发布了,这是2016系列版本的第二次重大更新,本次发布将会给python开发者、 Web开发者带来全新的体验。 Python相关增强: vmprof Profiler Support Pandas dataframes viewer Thread suspend option Function return values in the debugger...

View Article


Image may be NSFW.
Clik here to view.

Stage1--Python的特点和安装

Stage1--python的特点和安装 3小时前来源:CSDN博客 python基础 版权声明:本文出自水寒的原创文章,未经博主允许不得转载。 Python语言的特点Python是一种解释性语言 编译型语音:在程序执行前,会通过编译器将程序(代码)转换为机器语言(计算机可以看懂的语音),比如C语音。 解释型语音:没有编译过程,在程序执行的时候通过解释器对程序逐行解释然后直接运行。...

View Article


Microsoft Ships Python Code in 1996

My thanks go to Guido for allowing me to share my own history of python! I'll save my introduction to Python for another post, but the end result was its introduction into a startup that I co-founded...

View Article

Image may be NSFW.
Clik here to view.

Python 黑魔法之 Encoding & Decoding

写在前面 本文为科普文 本文中的例子在 Ubuntu 14.04 / python 2.7.11 下运行成功,Python 3+ 的接口有些许不同,需要读者自行转换 引子 先看一段代码: example.py : # -*- coding=yi -*- 从 math 导入 sin, pi 打印 'sin(pi) =', sin(pi) 这是什么?!是 Python 吗?可以运行吗?――想必你会问。...

View Article

Image may be NSFW.
Clik here to view.

使用Python工具分析风险数据

使用python工具分析风险数据 2小时前来源:CodeSec 随着网络安全信息数据大规模的增长,应用数据分析技术进行网络安全分析成为业界研究热点,小安在这次小讲堂中带大家用Python工具对风险数据作简单分析,主要是分析蜜罐日志数据,来看看一般大家都使用代理ip干了一些啥事。...

View Article

Python渗透测试框架:PytheM

PytheM是一个python渗透测试框架。它只能在osnGNU/linux OS系统上运行。 安装 $sudo apt-get update $sudo apt-get install libasound-dev libjack-jackd2-dev portaudio19-dev python-pyaudio build-essential python-dev...

View Article


Python Opearte SQLAlchemy Do Something

近段时间在看SQLAlchemy,总之万事开头难,但是么办法。 Database Urls The create_engine() function produces an Engine object based on a URL. These URLs follow RFC-1738 , and usually can include username, password, hostname,...

View Article

Image may be NSFW.
Clik here to view.

基于python的API接口管理平台开发(V1.0)

今天博主终于完成了API接口管理平台,最后差的就是数据库的维护, 博主这里介绍下平台的设计原理,首先基于python,利用flask的web框架+bootstrap前端框架完成,先阶段完成了前台展示页 二期要加入登录退出,后台管理 下面是文档结构图 涉及的python第三方模块:flask、flask-bootstrap、sqlalchemy 整体页面的布局:页头的导航,右侧的API分类,页面信息...

View Article


SETA rewrite-Use SqlAlchemy to instead of hardcode sql

Due to we have already make SETA to support taskcluster now, the nextthing we should do is to make it make the code become more robust and readable. That’s it, we should add more tests and documents...

View Article

Image may be NSFW.
Clik here to view.

Eli Bendersky: Drawing animated GIFs with matplotlib

This is a brief post on how to draw animated GIFs with python using matplotlib . I tried the code shown here on a Ubuntu machine with ImageMagick installed. ImageMagick is required for matplotlib to...

View Article


Kracekumar Ramaraju: HTTP Exception as control flow

As per Wikipedia , Exception handling is the process of responding to the occurrence, during computation, of exceptions anomalous or exceptional conditions requiring special processing often changing...

View Article

Image may be NSFW.
Clik here to view.

[工具资源] CSDN 已下载资源自动批量评论脚本

用 python 实现自动批量打分评论指定 CSDN 账号内所有下载过待评论的资源。 GitHub 仓库地址: https://github.com/mzlogin/csdncommenter 可通过 pip 安装运行: pip install csdncommenter csdncommenter 背景 CSDN...

View Article

Image may be NSFW.
Clik here to view.

Python高级特性:迭代器和生成器 -转

在python中,很多对象都是可以通过for语句来直接遍历的,例如list、string、dict等等,这些对象都可以被称为可迭代对象。至于说哪些对象是可以被迭代访问的,就要了解一下迭代器相关的知识了。 迭代器...

View Article
Browsing all 9596 articles
Browse latest View live