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

DXF data extraction

December 9, 2016 at 12:48 AM by Dr. Drang This is going to be one of those posts that are more valuable to me than they are to you. Maybe you’ll find something in it you can translate to your own...

View Article


Image may be NSFW.
Clik here to view.

scapy与路由轨迹图

通过路由轨迹图,可以帮助我们分析从端到服务器一路中经过的各个节点信息,从而是排查究竟是哪些因素导致网站访问故障。 用到的工具是 scapy ,该神器属于典型的强到没朋友。提供了众多网络数据包操作方法,可以发包 send() , SYN\ACK 扫描,嗅探 sniff() ,TCP路由跟踪 traceroute() 。 我们使用 traceroute()...

View Article


Miguel Grinberg Flask at Scale PyCon 2016

This post was originally published here Speaker: Miguel Grinberg Do you think that because Flask is a micro-framework, it must only be good for small, toy-like web applications? Well, not at all! In...

View Article

Image may be NSFW.
Clik here to view.

Working with csv files in Python

This article explains how to load and parse a CSV file in python. First of all, what is a CSV ? CSV (Comma Separated Values) is a simple file format used to store tabular data, such as a spreadsheet or...

View Article

Image may be NSFW.
Clik here to view.

Slides: Go At Weta Digital

Go At Weta Digital 8 December 2016 Justin Israel Pipeline Engineer, Weta Digital About Me (Justin Israel) Been in the Visual Effects industry since 2005 Stan Winston Digital, Sony Imageworks, SouthPark...

View Article


Image may be NSFW.
Clik here to view.

Python2.6下基于rsa的加密解密

生成公钥的私钥: # -*- coding: UTF-8 -*-import rsaimport base64(public_key, private_key) =...

View Article

Codementor: Building a Chatbot using Telegram and Python (Part 1)

Chatbots are all the rage at the moment, with some predicting that they will be bigger than mobile apps. The main idea of chatbots is that instead of having to dig through awkward mobile menus...

View Article

随想录(python第三方库中的 setup.py)

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】 webpy是我非常喜欢的一个framework,可惜创始人英年早逝。它的使用非常简单,可以直接从github上下载,解压之后,输入python setup.py install即可。我这里是用mac电脑安装的,最后发现安装的位置是在这里,...

View Article


I hate Python 2 and Python 3, but I love Python

Even though the new version is around, people would like to call it “python 3” which makes it sound like a different language. “Python 2” and “Python 3”, I hate them both. I love Python! I hate “Python...

View Article


Python数据解析工具:Beautiful Soup

Beautiful Soup简介 Beautiful Soup 是一个可以从HTML或XML文件中提取数据的python库,简单来说,它能将HTML的标签文件解析成树形结构,然后方便地获取到指定标签的对应属性。这个特性lxml差不多。 Beautiful Soup的安装 Beautiful Soup 3 目前已经停止开发,推荐在现在的项目中使用Beautiful Soup 4,安装方法: pip...

View Article

用python开发个人网站,立贴为证

首先,我想说,虽然我是个学java的。。。 其实我的java也很烂。但是我觉得python挺好玩,想学习下。之前用python做了简单的爬虫,也算是对python入门了。不过自己要学的地方还有很多。 我学习的资料都是网上找的,阮一峰老师的教程和菜鸟教程,都很不错。刚开始学习,没有必要买厚厚一本书去看,先入门了再说。 好吧,废话不多说。先制定个计划吧。...

View Article

Python正则表达式Re模块的学习

在数据抓取的时候会经常使用正则表达式,如果对于python的re模块不太熟悉,很容易被里面的各种方法搞混,今天就一起来复习下Python的re模块。 在学习Python模块之前,先来看下官方说明文档是怎么说的?执行: importre help(re) 返回内容如下: Helponmodulere: NAME re - Supportfor regularexpressions (RE). FILE...

View Article

Image may be NSFW.
Clik here to view.

Twisted Machines: Road Warrior Smartphone Game comes to Tizen

Twisted Machines: Road Warrior Remember last month 2 Cricket game released in Tizen Store byZapak Mobile Games Pvt. Ltd.: (i) T20 Cricket Champion 3D & (ii)Gujarat Lions: Official Cricket Game....

View Article


SQL Server + Python ― What’s new

python is one of the most popular and fastest-growing languages used today. Pyodbc (Python-SQL Server Connector) is an open source Python module maintained by Michael Kleehammer that uses ODBC Drivers...

View Article

Image may be NSFW.
Clik here to view.

How Mypy could simplify compiling Python

It’s the dream of every professional python programmer: Take an existing Python application, run it through a compiler, and generate high-speed, platform-native code that respects Python’s dynamic...

View Article


Spatial join points to polygons using Python and SPSS

A recent use case of mine I had around 60 million points that I wanted to assign to census block groups. ArcGIS was being problematic to simply load in the 60 million point dataset (let alone spatial...

View Article

Image may be NSFW.
Clik here to view.

How To Create a Twitter App and API Interface Via Python

This tutorial illustrates how to use a python API to connect to a Twitter account using the Twitter library. Specifically, this API allows a user to extract high quantities of data pertaining to a...

View Article


NewsBits- RethinkDB, PostgreSQL 10, Elastic 5.1.1, Database Security, Python...

NewsBits for the week ending December 9th - An update on RethinkDB's new world, developments in PostgreSQL 10, ElasticSearch jumps to 5.1.1, a reminder as to why you should secure your application and...

View Article

蒙特克洛模拟的优化

《 python 金融大数据分析》中对门特卡洛模拟的描述是这样的: 蒙特克洛模拟是金融学和数值科学中最重要的算法之一。它之所以重要,是因为在期权定价或者风险管理问题上有很强的能力。和其他数值方法相比,蒙特卡洛方法很容易处理高维问题,在这种问题上复杂度和计算要求通常以线性方式增大。...

View Article

Python 3.6 Brings Better Dictionaries, Improved Async I/O, and More

python is approaching its next major milestone, version 3.6. Expected to be released on December 16 , Python 3.6 brings many new features, including faster and more compact dictionaries, improved...

View Article
Browsing all 9596 articles
Browse latest View live