代码搜索:Python

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

代码结果 10,000
www.eeworm.com/read/446006/7586816

py listing26-8.py

#!/usr/bin/python print 'Content-type: text/html\n' import cgitb; cgitb.enable() def quote(string): if string: return string.replace("'", "\\'") else: return string import
www.eeworm.com/read/446006/7586860

c listing17-6.c

#include static PyObject *is_palindrome(PyObject *self, PyObject *args) { int i, n; const char *text; int result; /* "s" means a single string: */ if (!PyArg_ParseTuple
www.eeworm.com/read/442749/7645696

py seq.py

#!/usr/bin/env python # Filename: seq.py shoplist=['apple','mango','carrot','banana'] # Indexing or 'Subscription' operation print 'Item 0 is', shoplist[0] print 'Item 1 is', shoplist[1] pri
www.eeworm.com/read/442749/7645718

py using_list.py

#!/usr/bin/env python # Filename: using_list.py # This is my shopping list shoplist=['apple','mango','carrot','banana'] print 'I have',len(shoplist),'items to purchase.' print 'These items
www.eeworm.com/read/435264/7794832

py seq.py

#!/usr/bin/env python # Filename: seq.py shoplist=['apple','mango','carrot','banana'] # Indexing or 'Subscription' operation print 'Item 0 is', shoplist[0] print 'Item 1 is', shoplist[1] pri
www.eeworm.com/read/435264/7794854

py using_list.py

#!/usr/bin/env python # Filename: using_list.py # This is my shopping list shoplist=['apple','mango','carrot','banana'] print 'I have',len(shoplist),'items to purchase.' print 'These items
www.eeworm.com/read/196909/8045781

html book.html

Data Structures and Algorithms with Object-Oriented Design Patterns in Python
www.eeworm.com/read/143979/12825336

py fixed.py

#!/usr/bin/env python # example fixed.py import pygtk pygtk.require('2.0') import gtk class FixedExample: # This callback method moves the button to a new position # in the Fixed container.
www.eeworm.com/read/143979/12825347

py clipboard.py

#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk, gobject class ClipboardInfo: pass class ClipboardExample: # update button label and tooltips def update_buttons(self)
www.eeworm.com/read/143979/12825386

py getselection.py

#!/usr/bin/env python # example getselection.py import pygtk pygtk.require('2.0') import gtk class GetSelectionExample: # Signal handler invoked when user clicks on the # "Get String Target