代码搜索结果

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

if.py

#!/usr/bin/env python # Filename: if.py number=23 guess=int(raw_input('Enter an integer : ')) if guess==number: print 'Congratulations, you guessed it.' # New block starts here print "(but

while.py

#!/usr/bin/env python # Filename: while.py number=23 running=True while running: guess=int(raw_input('Enter an integer : ')) if guess==number: print 'Congratulations, you guessed it.'

if.py

#!/usr/bin/env python # Filename: if.py number=23 guess=int(raw_input('Enter an integer : ')) if guess==number: print 'Congratulations, you guessed it.' # New block starts here print "(but

while.py

#!/usr/bin/env python # Filename: while.py number=23 running=True while running: guess=int(raw_input('Enter an integer : ')) if guess==number: print 'Congratulations, you guessed it.'

page122.html

Iterators and the Python for statement

basicaction.py

#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class BasicAction: def __init__(self): # Create the toplevel window window = gtk.Window() window.connec

basictreeview.py

#!/usr/bin/env python # example basictreeview.py import pygtk pygtk.require('2.0') import gtk class BasicTreeViewExample: # close the window and quit def delete_event(self, widget, event,

treeviewcolumn.py

#!/usr/bin/env python # example treeviewcolumn.py import pygtk pygtk.require('2.0') import gtk class TreeViewColumnExample: # close the window and quit def delete_event(self, widget, event

paned.py

#!/usr/bin/env python # example paned.py import pygtk pygtk.require('2.0') import gtk, gobject class PanedExample: # Create the list of "messages" def create_list(self): # Create a

notebook.py

#!/usr/bin/env python # example notebook.py import pygtk pygtk.require('2.0') import gtk class NotebookExample: # This method rotates the position of the tabs def rotate_book(self, button,