代码搜索结果

找到约 11,834 项符合 Python 的代码

python.c

/* * $Id: python.c,v 1.8 2003/04/01 04:55:27 darren Exp $ * * Copyright (c) 2000-2003, Darren Hiebert * * This source code is released for free distribution under the terms of the * GNU

readme

pymmseg-cpp by pluskid == DESCRIPTION: pymmseg-cpp is a Python interface to rmmseg-cpp. rmmseg-cpp is a high performance Chinese word segmentation utility for Ruby. However, the core part is wri

conll2mst.py

#! /usr/bin/python import sys; # Open File f = open(sys.argv[1],'rt'); wrds = ""; pos = ""; labs = ""; par = ""; for line in f: sent = line.split(); if len(sent) > 0: wrds +=

install

To Install APTonCD: Contents: 1. Requeriments 2. Installing == Requeriments == Make sure you have the following packages/applications/libraries: * python >= 2.4 * python-apt * python-gnome2 * pyth

listing15-1.py

from urllib import urlopen import re p = re.compile('(.*?)') text = urlopen('http://python.org/community/jobs').read() for url, name in p.findall(text): print '%

listing15-4.py

#!/usr/bin/env python print 'Content-type: text/plain' print # Prints an empty line, to end the headers print 'Hello, world!'

listing15-5.py

#!/usr/bin/env python import cgitb; cgitb.enable() print 'Content-type: text/html' print print 1/0 print 'Hello, world!'

listing15-6.py

#!/usr/bin/env python import cgi form = cgi.FieldStorage() name = form.getvalue('name', 'world') print 'Content-type: text/plain' print print 'Hello, %s!' % name

listing10-13.txt

[name = 'Magnus Lie Hetland' ] [email = 'magnus@foo.bar' ] [language = 'python' ]

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