Python 集成 R 语言 - PyThor 经验

RPy2 可以在 Python 和 R 之间进行交互,让用户可以在 Python 中轻松的使用 R 的封装包。 Python 一般用来进行数据分析,但是许多的包只存在于 R 语言中。所以,在 Python

jopen 2016-01-07   32568   0

centos 安装python3 经验

776 1、从python官网上下载最新的python3版本 wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz

GraPower 2016-02-27   16409   0

Python: 陌生的 metaclass 经验

Python 中的 元类(metaclass) 是一个深度魔法,平时我们可能比较少接触到元类,本文将通过一些简单的例子来理解这个魔法。 类也是对象 在 Python 中,一切皆对象。字符串,列表,字典,函数是对象,

VicWickens 2016-11-17   6953   0
P

深入Python 中文版 文档

Python 研究(Dive Into Python) Dive Into Python 是为有经验的程序员编写的一本 Python 书。<br>ActiveState 制作了一个 Windows 上的 Python 安装程序称为 ActivePython, 它包含了一个完整的 Python 发布; 一个适用于 Python 编程的 IDE 附加了一些 Python 的 Windows 扩展, 提供了全部的访问 Windows APIs 的服务, 以及 Windows 注册表的注册信息。 虽然 ActivePython 不是开源软件, 但它可以自由下载。 ActivePython 是我曾经学习 Python 时使用过的 IDE, 除非有别的原因, 我建议您使用它。可能的一个原因是:ActiveState 通常要在新的Python 版本出来几个月以后来更新它的安装程序。如果您就需要Python 的最新版本, 并且 ActivePython 仍然落后于最新版本的话, 您应该直接跳到在 Windows 上安装 Python 的第二种选项。

mx234 2015-08-26   210   0
P

Python 数据结构与算法 文档

This book is about the fundamentals of data structures and algorithms--the basic elements from which large and complex software artifacts are built. To develop a solid understanding of a data structure requires three things: First, you must learn how the information is arranged in the memory of the computer. Second, you must become familiar with the algorithms for manipulating the information contained in the data structure. And third, you must understand the performance characteristics of the data structure so that when called upon to select a suitable data structure for a particular application, you are able to make an appropriate decision. <br> This book also illustrates object-oriented design and it promotes the use of common, object-oriented design patterns. The algorithms and data structures in the book are presented in the Python programming language. Virtually all the data structures are presented in the context of a single class hierarchy. This commitment to a single design allows the programs presented in the later chapters to build upon the programs presented in the earlier chapters.

gneg 2015-07-22   251   0

python在windows锁屏的代码 代码段

python在windows锁屏的代码 C:\Users\wangmingjie>python Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500

wcwx 2015-01-03   5316   0
Python  

Python中数组用法大全 代码段

#!/usr/bin/env python # # [SNIPPET_NAME: Lists 101] # [SNIPPET_CATEGORIES: Python Core] # [SNIPPET_DESCRIPTION:

b573 2015-01-24   2817   0
Python  

利用python 统计源码行数 代码段

原理先获取所有文件,然后统计每个文件中代码的行数,最后将行数相加,思路很简单。 import os import os.path import time rootdir = '文件路径' filelists = [] #遍历文件 def getFile(rootdir): global filelists for parent,dirnames,filenames in os.walk(rootd

jopen 2015-03-19   911   0
Python  

python显示生日是星期几 代码段

given date # Python will trap impossible dates like (1900, 2, 29) # tested with Python24 vegaseat 01aug2005

pykde 2015-06-15   1335   0
Python  
P389

  Dive Into Python中文版 文档

Dive Into Python http://diveintopython.org/ Dive Into Python 5 第 1 章 安装 Python 7 1.1. 哪一种 Python 适合您? 7

wbzdsg 2011-10-26   4315   0

Python 开发环境 BlackAdder 经验

BlackAdder 是在 linux 和 windows 下的基于 QT 的开发环境;

fmms 2012-01-06   15308   0

小型Python框架 Flask 经验

Flask 是一个微型的 Python 开发的 Web 框架,示例代码: from flask import Flask app = Flask(__name__) @app.route("/") def

openkk 2012-02-14   42877   0

Python图像处理库 PIL 经验

PythonWare公司提供了免费的图像处理工具包 PIL(Python Image Library),该软件包提供了基本的图像处理功能,如:改变图像大小,旋转图像,图像格式转换,色场空间转换,图像增

fmms 2012-02-17   29825   0

Python Web框架 karrigell 经验

karrigell,一个支持用python开发web程序的框架,说的再明白一些,就是一个可以解释python脚本的web服务器.如果你用 python写了一个网页,直接点击浏览肯定出错,因为虽然你的机器上装了python运行环境

jopen 2011-12-21   15920   0

Python性能分析指南 经验

尽管并非每个你写的Python程序都需要严格的性能分析,但了解一下Python的生态系统中很多优秀的 在你需要做性能分析的时候可以使用的 工具仍然是一件值得去做的事。 分析一个程序的性能,最终都归结为回答4个基本的问题:

jopen 2013-09-09   16810   0

Python开发环境:Spyder 经验

Spyder (就是原来著名的 Pydee ) 是一个强大的交互式 Python 语言开发环境,提供高级的代码编辑、交互测试、调试等特性,支持包括 Windows、Linux 和 OS X 系统。详细特性如下:

jopen 2013-10-27   186448   0

Python来图像处理 经验

要利吾事,必先利吾器,既然只是做一下实验,那用 Python 来作原型开发再好不过了。在 Python 中,比较常用的图像处理库是 PIL(Python Image Library),当前版本是 1.1

jopen 2012-11-24   38980   0

Python 学习资源列表 经验

海量 Python 学习资源列表,涉及 Python 学习的方方面面。 Contents Beginner's Delight Style Guide and Idioms Dictionary Decorators

jopen 2013-12-15   404865   0

常用的 Python 调试工具 经验

trace 模块,可以打印运行时包含在其中的模块里所有执行到的语句。(就像制作一份项目 报告 ) python -mtrace --trace script.py 这会产生大量输出(执行到的每一行都会

jopen 2014-01-13   38369   0

Python性能鸡汤 经验

第一部分 阅读 Zen of Python ,在Python解析器中输入 import this . 一个犀利的Python新手可能会注意到"解析"一词, 认为Python不过是另一门脚本语言. "它肯定很慢

jopen 2014-09-11   40522   0
1 2 3 4 5 6 7 8 9 10