代码搜索结果
找到约 11,834 项符合
Python 的代码
readme
Two things are provided in this directory: an automatic model selection
tool and a python binding for libsvm.
Part I: Model Selection Tools
Introduction
===============
grid.py is a model selecti
第六章 模块 suzhe (转).txt
作者:softrain
email: softrain@edu.21cn.com
日期:2001-7-21 9:57:31
第六章 模块
如果退出<mark>Python</mark>解释程序然后再进入,原有的定义(函数和变量)就丢失了。所以,如
果需要写长一点的程序,最好用一个文本编辑程序为解释程序准备输入,然后以程序文
件作为输入来运行<mark>Python</mark>解释程序,这称为准备脚本(script)。当你的程序变 ...
第四章 流程控制 suzhe (转).txt
作者:softrain
email: softrain@edu.21cn.com
日期:2001-7-21 9:54:49
第四章 流程控制
前面我们已经见到了如何由用while结构控制流程运行。这一章我们介绍更多的控制结构
。Python具有和其它语言类似的控制结构但略有差别。
4.1 If 语句
If 语句可能是最基本的程序分支语句了。例如:
>>> if x < 0
第十章 进一步学习 suzhe (转).txt
作者:softrain
email: softrain@edu.21cn.com
日期:2001-7-21 9:59:40
第十章 进一步学习
希望通过这个入门课程的学习增强了你对使用<mark>Python</mark>的兴趣。下一步怎么办呢?
你可以进一步去读《库参考手册》,该手册对类型、函数、模块等给出了完整的(尽管
比较简短)参考材料,可以节省你写<mark>Python</mark>程序时的大量时间。标准<mark>Python</mark> ...
第二章 解释程序的使用 suzhe (转).txt
作者:softrain
email: softrain@edu.21cn.com
日期:2001-7-21 9:54:02
第二章 解释程序的使用
在命令行键入
<mark>python</mark>
或在Windows环境下双击相应的图标可以进入<mark>Python</mark>的解释程序。如果要运行储存在文件
中的<mark>Python</mark>程序,可以用
<mark>python</mark> 文件名
的形式。
进入解释 ...
pygtk-demo.in
#! @PYTHON@
import sys
import os.path
pygtklibdir = os.path.join("@libdir@", "pygtk", "2.0")
sys.path.insert(0, pygtklibdir)
execfile(os.path.join(pygtklibdir, "pygtk-demo.py"))
readme
This directory contains some tools that can be used to help develop python
applications. There is a graphical front end to the profiler and debugger,
and a graphical python console, and a 'module bro
readme
Python-to-libsvm interface
Introduction
============
Python (http://www.python.org/) is a programming language suitable for
rapid development. This python-to-libsvm interface is developed so
users
readme
TinySVM python module
$Id: README,v 1.1 2001/09/01 03:36:13 taku-ku Exp $;
1. Install
% make -f Makefile.pre.in boot
% make
% su
# make install
2. How to use?
see 'test.py' as sample p
makefile.pre.in
# Universal Unix Makefile for Python extensions
# =============================================
# Short Instructions
# ------------------
# 1. Build and install Python (1.5 or newer).
# 2. "make -f