ÇëÎÊpythonÀïÃæµÄ@ʲôÒâ˼£¿
±ÈÈç
Python code:
@orm.validates('title')
def validate_title(self, key, title):
"""Assure that page titles are wikiwords and valid length"""
if len(title) > 40:
raise ValueError('Page title must be 40 characters or fewer')
if not wikiwords.match(title):
log.warning('%s: invalid title (%s)' % (self.__class__.__name__,
title))
raise ValueError('Page title must be a wikiword (CamelCase)')
return title
¸Ðл¡«
Ïà¹ØÎÊ´ð£º
ÎÒÏÖÔÚÊÇÕâÑùµÄ
¿ªÁËÒ»¸ö×ÓỊ̈߳¬¶ÁÈ¡ÏÂÃæµÄÏûÏ¢
±¾ÒâÊÇ
Python code:
while not self._stopevent.isSet( ):
re=¶ÁȡϲãÏûÏ¢
if re>0:
´¦Àí
else:
pass
¼ÙÈ ......
pythonÈçºÎ½âѹËõ.ZµÄÎļþ°¡£¬ÔÚwindowsϵͳ»·¾³ÏÂ
Q7Z ÊÇÒ»¿î»ùÓÚ Qt4 µÄ 7z ѹËõ¹¤¾ß
http://code.google.com/p/k7z/
¿ªÔ´µÄ
http://sourceforge.net/projects/k7z/
LSµÄÄܾßÌå˵һ˵Âð£¿
......
Âé·³¸ßÊÖ½â´ðһϠллÁË ÎÒÊÇÐÂÊÖ Ò»Ð©¸ÅÄî¶¼²»Ì«Çå³þ¡£¡£¡£
pyodbc is a Python module that allows you to use ODBC to connect to almost any database from Windows, Linux, OS/X, and more.
pyodbcÊÇ ......
ʹÓÃÔ´Îļþ
#!/usr/bin/python
# Filename : helloworld.py
print 'Hello World'
ÎÒÔõôҲ¿´²»¶®£¡Ö»ÊÇ×îºóÒ»ÐÐÎÒÖªµÀ~~Ç°ÃæÁ½ÐÐÊÇʲôÒâË¼ÄØ£¿
½Ì³ÌÉÏ˵Èç¹ûÄãʹÓÃIDLE£¬ÇëʹÓò˵ ......
ϲ»¶PythonµÄÅóÓÑÇë½ø.
ÏêϸÐÅÏ¢Çë²é¿´:
http://blog.csdn.net/lgg201/archive/2009/10/08/4643635.aspx
Let's-python-ϵÁÐÊÓÆµ·¢²¼×¨Ìù ÊÕ²Ø
ÊÓÆµ½ÏÔçµÄʱºò¾Í˵ÊÇҪ¼ÁË, ÕâÒ»ÖܼÁË ......