P

Python源码剖析 文档

Python总体架构 在最高的层次上,Python的整体架构可以分为四个主要的部分,整个架构如图1所示。在左边,是Python提供的大量的模块,库以及用户自定义的模块。比如在执行import os时,这个os就是Python内建的模块,当然用户还可以通过自定义模块来扩展Python系统。在本系列文章中,我们不会对这一部分进行过多的考察。<br> 在图的右边,是Python的运行时环境,包括对象/类型系统(Object/Type structures),内存分配器(Memory Allocator)和运行时状态(Current State of Python)。运行时状态维护了解释器在执行字节码时在不同的状态之间切换的动作,我们可以将它视为一个巨大而复杂的有穷状态机。内存分配器则全权负责Python中创建对象时对内存的申请工作,实际上它就是Python运行时与C中malloc的一层接口。而对象/类型系统则包含了Python中存在的各种内建对象,比如整数,list和dict等等

f453 2015-10-24   657   0
P

Python 3.4.2 文档 文档

What's new in Python 3.4? or all "What's new" documents since 2.0 Tutorial start here Library Reference keep this under your pillow Language Reference describes syntax and language elements Python Setup and Usage how to use Python on different platforms Python HOWTOs in-depth documents on specific topics Installing Python Modules installing from the Python Package Index & other sources

xcy615601 2015-01-08   5564   0
P

Text Processing in Python 文档

Text Processing in Python is an example-driven, hands-on tutorial that carefully teaches programmers how to accomplish numerous text processing tasks using the Python language. Filled with concrete examples, this book provides efficient and effective solutions to specific text processing problems and practical strategies for dealing with all types of text processing challenges.

mylijie 2014-12-12   429   0

python生成图片 代码段

import cv2.cv as cv saveImagePath = 'E:/ScreenTestImages/' colorRed = [0,0,255] colorGreen = [0,255,0] colorBlue = [255,0,0] colorWhite = [255,255,255] colorBlack = [0,0,0] colorAqua = [255,255,0] col

wcwx 2015-01-03   2062   0
Python  

python抓取图片示例 代码段

#!/usr/bin/python # -*- coding:utf-8 -*- import re import os import urllib, urllib2, cookielib import

openocode 2015-01-08   1340   0
Python  

python人脸识别 代码段

好提供了python-opencv这个包,用它可以方便地实现人脸检测的代码。 写代码之前应该先安装python-opencv: $ sudo apt-get install python-opencv

gcd8 2015-01-20   4254   0

python文件操作 代码段

#! /usr/bin/python # -*- coding:utf-8 -*- ''' Created on 2013-12-11 @author: Java ''' import os import

em7 2015-01-22   5012   0
Python  

Python代码运行助手 代码段

#!/usr/bin/env python3 # -*- coding: utf-8 -*- r''' learning.py A Python 3 tutorial from http://www.liaoxuefeng

peke 2016-01-06   3497   0
Python  

Python 数据结构 经验

-structure-using-python 中文版 目的 数据结构作为计算机从业人员的必备基础,Java, c 之类的语言有很多这方面的书籍,Python 相对较少, 其中比较著名的一本

ykwj8436 2017-02-15   12574   0

Python实现守护进程 经验

考虑如下场景:你编写了一个python服务程序,并且在命令行下启动,而你的命令行会话又被终端所控制,python服务成了终端程序的一个子进程。因此如果你关闭了终端,这个命令行程序也会随之关闭。 要

zsl1017 2017-02-08   13099   0

Python并行处理 经验

3秒是用于各种开销,即这部分是无法压缩和优化的,所以速度提高是有极限的。 运行与Python并行的函数 Python提供了四种可能的处理方式。首先可以使用 multiprocessing 模块并行

fsyanyong 2017-11-06   38921   0

MongoDB的Python接口 PyMongo 资讯

PyMongo 是 MongoDB 的 Python 接口开发包。 示例代码: 创建Connection时,指定host及port参数 >>> import pymongo >>> conn

fmms 2011-09-05   18221   1
MongoDB   Python  

混乱的 Python 资讯

原文 http://tech.acgtyrant.com/混乱的-Python/ 常言道,Python 真谛之一是: There should be one– and preferably

jopen 2015-11-04   32038   0
Python  
P14

  python 基本语法 文档

基本语法 编辑 Python的设计目标之一是让代码具备高度的可阅读性。它设计时尽量使用其它语言经常使用的标点符号和英文单字,让代码看起来整洁美观。它不像其他的静态语言如C、Pascal那样需要重复书

nhtang111 2016-05-25   605   0
P81

  python trainning20160604 文档

1. Python函数Python 学习小组 20160604 2. Python中使用def关键字定义函数,函数包括函数名称和参数,不需要定义返回类型,Python能返回任何类型:函数的定义#没有返回值的函数,其实返回的是None  

boqiyupp 2016-06-08   2002   0
Python开发   JSON   Python   XML   C/C++  
P52

  Python介绍 文档

1. Python入门 2. Python的历史Python是自由软件的丰硕成果之一 创始人 Guido van Rossum 时间地点 1989年圣诞节期间在阿姆斯特丹创造 名字来源 大蟒蛇飞行马戏团的爱好者

dgww 2016-02-01   717   0
Python开发   Java   Python   C/C++   Go  
P38

  python爬虫 文档

1. Python爬虫 许超英 2. python爬虫基础知识: Python基础知识 Python中urllib和urllib2库的用法 Python正则表达式 Python爬虫框架Scrapy Python爬虫更高级的功能

xcyflyer 2016-05-26   826   0
Python开发   HTTP   HTML   JSON   Python  

Python 常用代码片段 博客

parseFile(open("sample.xml")) parser.close() 7.python的GUI模块标准的是Tkinter,也有QT和MFC的模块,有兴趣的大家自己搜索下 import

jopen 2012-01-15   932   0

java 同步方法的使用 防止多线程同时执行方法 代码段

/** * java 同步方法的使用,防止多线程同时执行方法。 * * synchronized方法加锁,不管哪一个线程运行到这个方法时,都要检查有没有其它线程正在用这个方法, * 有的话要等正在使用

123bt 2014-12-31   1840   0
Java   线程  

c#(asp.net) 多线程示例,用于同时处理多个任务 代码段

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Threading; using System.Web.UI.WebControls; public partial class muti_thread : Sy

ggkwk 2015-07-09   1557   0
C#  
1 2 3 4 5 6 7 8 9 10