代码搜索结果

找到约 10,000 项符合 Python 的代码

mpris.py

#!/usr/bin/env python # -*- coding: utf8 -*- # # Copyright 漏 2006-2007 Rafa毛l Carr茅 # # $Id$ # # This program is free software; you can redistribute it and/or modify # it un

lexpython.cxx

// Scintilla source code edit control /** @file LexPython.cxx ** Lexer for Python. **/ // Copyright 1998-2002 by Neil Hodgson // The License.txt file describes the conditions u

module2module.py

#!/usr/bin/env python # def custom_callback(name): # print "loading %s submodule..." % name # import itkConfig # itkConfig.ImportCallback = custom_callback import itk, sys import Base i

template.py

#!/usr/bin/env python import itk dim = 2 PType = itk.US # check the repr string assert "" == repr(itk.Image) # template should work with CType instance and with n

hello.py

#!/usr/bin/env python # this is a translation of "Hello World III" from the GTK manual, # using gtk.py from gtk import * def hello(*args): print "Hello World" window.destroy() def destroy(

hammie.py

#! /usr/bin/env python from spambayes import mboxutils from spambayes import storage from spambayes.Options import options from spambayes.tokenizer import tokenize try: True, False except NameE

classifier.py

#! /usr/bin/env python from __future__ import generators # An implementation of a Bayes-like spam classifier. # # Paul Graham's original description: # # http://www.paulgraham.com/spam.html # #

nway.py

#!/usr/bin/env python """ Demonstration of n-way classification possibilities. Usage: %(prog)s [ -h ] tag=db ... -h - print this message and exit. All args are of the form 'tag=db' where 'tag' is

mkzip.py

#!/usr/bin/env python """\ %(_prog)s - analyze imports and generate zipfile for application usage: %(_prog)s -f file [ -z file ] [ -m module ] [ -h ] -f file: analyze imports made by file -z file:

findbest.py

#!/usr/bin/env python ''' Find the next "best" unsure message to train on. %(prog)s [ -h ] [ -s ] [ -b N ] ham spam unsure Given a number of unsure messages and a desire to keep your training d