Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[Ô­´´]Python(pysvn)ÌáÈ¡svn°æ±¾¼ä¸Ä¶¯ÎļþÁбí

[Ô­´´]Python(pysvn)ÌáÈ¡svn°æ±¾¼ä¸Ä¶¯ÎļþÁбí
by AKara 2010.04.29 @ http://blog.csdn.net/akara @ akaras@163.com
---------------------------------------------------------------------
 
  Ï£ÍûʵÏÖÒ»¸öÌáÈ¡Á½¸ösvn revision¼äÓб䶯(Ôö/ɾ/¸Ä)µÄÎļþµÄÁбí
µÄÃüÁîÐй¤¾ß£»¿ÉÒÔ°ïÎÒÃÇÏîÄ¿×öһЩÁ÷³ÌÖеÄ×Ô¶¯»¯¹¤×÷(time -80%!)¡£
ÆäʵÕâÊÂÇ飬GUI½çÃæµÄTortoiseSVN¾ÍÒѾ­¿ÉÒÔÔÚLog Message DialogÖÐͨ¹ý
µã»÷ÈÎÁ½¸örevisionÌõÄ¿À´ÓÒ¼üCompare revisionsÍê³É²¢´æÅÌ£»µ«¿ÉϧûÓÐ
commandline½Ó¿Ú£¬¶øÇÒÎÒµÄÏë·¨Öл¹ÓÐЩÌØÊâµÄ¹ýÂ˹æÔòºÍÊä³ö¸ñʽҪÇó¡£
  Ö±¾õÉÏ£¬Ï£ÍûÖ±½ÓpipeÒ»ÏÂ"svn log url -rR1:R2 -v"Ö®ÀàµÄÊä³öÀ´×ö¡£
µ«»ùÓÚsvnÃÀ»¯µÄÎı¾Êä³ö»¹Ô­Ëüµ×²ãµÄÊý¾Ý½á¹¹»áÏݽø(ÔìÂÖ×Ó^2)µÄ±­¾ßÖС£
  GoogleÁËÒ»ÏÂ"python svn"·¢ÏÖpysvnÕâ¸ö3rd lib( PythonµÄ3rd libÕæÊÇ
±ÈLua¶àÒ»¸öÊýÁ¿¼¶*_* )£¬ÓÃËü±ã¿É¶ÀÁ¢Íê³ÉÆÕͨsvn clientÄÜʵÏֵŦÄÜ¡£
±ä¶¯ÎļþÁбíÌáÈ¡¾ÍÊÇС²ËÒ»µúÁË¡£
---------------------------------------------------------------------
  ¶¯ÊÖÁË¡£
  Ê×ÏÈ£¬È·¶¨svn serverµÄ°æ±¾ºÅ£º
  ´ÓWEBä¯ÀÀÆ÷ÉÏ´ò¿ªÒªÌáÈ¡µÄsvn²Ö¿âURLÒ³Ã棬×îÏ·½Ó¦¸ÃÓÐÀàËÆ£º
   "Powered by Subversion version 1.5.5 (r34862). "
µÄÐÅÏ¢¡£ÏÖÔÚ¿ÉÒÔµ½http://pysvn.tigris.orgÕÒ¶ÔÓ¦°æ±¾µÄPySvn¿â¡£
ÎÒÓõÄÊÇPython2.5¡£ÕÒµ½Ò»¸ö°æ±¾µÄPySvn¸ÕºÃºÏÊÊ£º
  ===========================================
  Ãû³Æ py25-pysvn-svn155-1.6.3-1119.exe
  ״̬ Îȶ¨ 
  ÃèÊö PySVN 1.6.3 for python 2.5 and svn 1.5.5 installation kit
  ´´½¨Õß barryscott ÓÚ 2009Äê2ÔÂ11ÈÕ ÐÇÆÚÈý 
  ÉÏ´ÎÐÞ¸ÄÕß barryscott ÓÚ 2009Äê4ÔÂ18ÈÕ ÐÇÆÚÁù 
  Îļþ  py25-pysvn-svn155-1.6.3-1119.exe (Îļþ´óС£º 3332.6) 
  ===========================================
 
  µ«£¬Õâ¹ÙÕ¾·ÃÎÊÆðÀ´ÄÇÊÇÒì³£µÄÂý¡£-_-
  (ÎÒµÄFireFoxÉÏÒª½«network.http.keep-alive.timeout¸Ä´ó¼¸±¶²ÅÄÜ´ò¿ª)
  ¶øÇÒÏÂÔØÒ²ÊǷdz£µÄ²»Îȶ¨£¬È̲»ÁË£¬ÕÒÁËÒ»¸öµÚÈý·½µÄÏÂÔصã(˲¼äÏÂÍê)£º
http://www.urbansim.org/opus/third-party/windows/py25-pysvn-svn155-1.6.3-1119.exe&nbs


Ïà¹ØÎĵµ£º

Eclipse Python¿ª·¢»·¾³

1£¬ÏÂÔØorg.python.pydev.feature-1.5.0.1251989166.zip http://sourceforge.net/projects/pydev/files/
2£¬°²×°²å¼þµ½eclipse
3£¬ÖØÆôeclipse
×¢Ò⣺ʹÓÃ1.5.6°æ±¾pydev²å¼þ£¬´´½¨python¹¤³Ì»á±¨´í£¬Ê¹ÓÃ1.5.0°æ±¾ÎÞ´ËÎÊÌâ¡£ ......

pythonµÄ±ä²Î


pythonµÄ±ä²Î
*argsºÍ**dargsÊÇPythonµÄÁ½¸ö¿É
±ä²ÎÊý£¬Á½ÕßÓÐËù²»Í¬µÄÊÇ*argsÊǸötuple£¬**dargsÊǸödict¡£
*args
ºÍ**dargs²¢ÓÃʱ£¬*args±ØÐë·ÅÔÚ**dargsµÄÇ°Ãæ¡£
ÀýÈ磺
def func(a,b, *c):
    pass
º¯ÊýfuncÖÁÉÙÓÐÁ½¸ö²ÎÊý±ä²ÎÊý·ÅÔÚtuple  cÖÐ
def func(*c): »òÕß def  func(**d ......

Python TKinter Gui: Toplevel window

#from pp3e Chapter 9.3
#############################################################################
# popup three new window, with style
# destroy() kills one window, quit() kills all windows and app; top-level
# windows have title, icon, iconify/deiconify and protocol for wm events;
# there ......

Ïòpython¿¿½ü

  ÕÛÌÚ¼ÆËã»ú£¬±»¼ÆËã»úÕÛÌÚ£¬Ç°Ç°ºóºóÒ²ÓÐÊ®¼¸Äê¡£
  ×î¿É±¯µÄÊǾÓȻһÎÞËù³É£¬ËäÈ»½ö½ö³öÓÚÐËȤ£¬²¢ÎÞ¹¤×÷֮ѹÁ¦£¬µ«ÊÇÕâÖÖ´ìÕÛ¸ÐȷʵÊÇʵ´òʵµÄ¡£
  ÒѾ­¼Ç²»ÆðÊÇÄÄÒ»ÌìÁË£¬ºÃÏñͻȻ¾ÍÖªµÀÁËpythonµÄ´æÔÚ£¬´Ó×î³õµÄ²»¾­Ò⣬µ½Ô½À´Ô½Ï²°®£¬ÎÒÒ»²½²½µÄÏòpython¿¿½ü¡£
ÎÒϲ»¶Python£¬ÕâÊÇÒ»¸öÊÂʵ£¬ÎÒ׫´ ......

python¶ÁдÎļþ


1.open
ʹÓÃopen´ò¿ªÎļþºóÒ»¶¨Òª¼ÇµÃµ÷ÓÃÎļþ¶ÔÏóµÄclose()·½·¨¡£±ÈÈç¿ÉÒÔÓÃtry/finallyÓï¾äÀ´È·±£×îºóÄܹرÕÎļþ¡£
file_object = open('thefile.txt')
try:
     all_the_text = file_object.read( )
finally:
     file_object.close( )
×¢£º²»Ä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ