代码搜索结果
找到约 10,000 项符合
Python 的代码
setup.py
#! /usr/bin/python
from distutils.core import setup, Extension
module1 = Extension('timeC', sources = ['timeC.c', 'time_test.c'])
setup (name = 'PackageName', version = '1.0', description = '
page22.html
The Features of Python You Need to Know
page83.html
Extending Python Lists - An Array Class
footnode.html
Footnotes
...monotonicity
Don't worry if you don't know what that means.
Essentially it says that Python's
ogl.py
# -*- coding: iso-8859-1 -*-
# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
# 20040508 - Pierre Hj鋖m
#
# o Changed to use the python version of OGL
#
treemodelsort.py
#!/usr/bin/env python
# example treemodelsort.py
import pygtk
pygtk.require('2.0')
import gtk
import random
class TreeModelSortExample:
# close the window and quit
def delete_event(self, w
drawingarea.py
#!/usr/bin/env python
# example drawingarea.py
import pygtk
pygtk.require('2.0')
import gtk
import operator
import time
import string
class DrawingAreaExample:
def __init__(self):
windo
itemfactory.py
#!/usr/bin/env python
# example itemfactory.py
import pygtk
pygtk.require('2.0')
import gtk
class ItemFactoryExample:
# Obligatory basic callback
def print_hello(self, w, data):
pri
tooltip.py
#!/usr/bin/env python
# example tooltip.py
import pygtk
pygtk.require('2.0')
import gtk
# Create an Arrow widget with the specified parameters
# and pack it into a button
def create_arrow_button(ar
table.py
#!/usr/bin/env python
# example table.py
import pygtk
pygtk.require('2.0')
import gtk
class Table:
# Our callback.
# The data passed to this method is printed to stdout
def callback(sel