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

ÓÃPythonÌáÈ¡Îļþ¼ÐϵÄÌض¨À©Õ¹ÃûµÄÎļþ

                ÓÃPythonÌáÈ¡Îļþ¼ÐϵÄÌض¨À©Õ¹ÃûµÄÎļþ
      ²»ÖªµÀʲôʱºò£¬ÍøÏÐ×ÅûÓ㬹ÒÁ˸ölinuxµÄÊÓÆÁ½Ì³Ì£¬ÀïÃæÓкܶà¸öÎļþ¼Ð£¬ÓкܶàÎ޹صÄÎļþ¡£Õâ¶ÔÓÚÏñÎÒûÊÕ²ØÀ¬»øÎļþñ±ºÃµÄÈËÀ´Ëµ£¬¼òÖ±ÊDz»ÄÜÈ̵ġ£ËùÒÔµ±Ê±¾Í´òËã×Ô¼ºÊÖ¶¯Ò»¸öÒ»¸öÌáÈ¡³öÀ´£¬¹éµ½ÁËij¸öÎļþ¼Ð¡£ÎÞÄÎÎļþʵÔÚÌ«¶àÁË£¬ÊµÔÚûÄÇ·ÝÏÐÇ飬һ¸öÒ»¸öÈ¥ÌáÈ¡¡£ËùÒԾʹòËãд¸öVCµÄС³ÌÐò£¬µ±Ê±º®¼ÙÔÚ¼ÒÀ¶Ô×ÅÄÇÒ»´ó¶ÑµÄwindows API,»¹ÊÇÒ»¶ÑEnglishµÄº¯ÊýÃèÊö£¬¶Ùʱ°ÑÎÒÐËȤ¸ø´òûÁË¡£È·ÊµÊÇ×Ô¼º±È½ÏÀÁ£¬¾²²»ÏÂÐÄÀ´×¨ÑС£
     Õ⼸Ì죬ÔÚѧϰBoost¿â£¬·¢ÏÖÀïÃæÓиöΪpythonдµÄ×ֿ⣬¶ÙʱȼÆðÎÒѧÆÚPythonµÄÓûÍû£¬Ö÷ÒªÊÇÏë¿´¿´°ÑÕâÁ½ÃÅÓïÑÔ½áºÏÆðÀ´ÓûáÓÐʲôÓÅÊÆ¡£¹È¸èÁËһϣ¬¶¼ËµpythonºËÐıà³Ì»¹²»´í£¬µ«·­ÒëµÄÖÊÁ¿²»ÔõôÐС£¼ÇµÃÒÔÇ°ÔÚij¸ö´óÅ£µÄ²©¿ÍÉÏ¿´µ½¹ý£¬·­ÒëÖÊÁ¿²»ºÃµÄ£¬Äþ¿É²»¿´£¬È¥¿´Ô­°æÊé¡£ËùÒÔÎÒ±ãɵºõºõµÄÅÜÈ¥amazonÍøÕ¾ÉÏÃ棬ÕÒÁËÒ»ÃÅÎåÐǼ¶µÄÊ飬<<Beginning Python Using Python 2.6 and Python 3.1 - James W. Payne>>£¬´òÓ¡³öÀ´£¬¿ªÊ¼ÁËÎÒµÄPythonÖ®Âá£
     ÐÒºÃÒÔÇ°MSDN¿´¶àÁË£¬Ó¢ÓﻹËãÃãÇ¿¹ýµÃÈ¥£¬ÔÙ¼ÓÉÏGoogleÇ¿´óµÄ·­ÒëÔÚ£¬ÅÂɶ°¡¡£Ò»¿ÚÆø°Ñ»ù±¾Óï·¨¿´ÍêÁË£¬¾õµÃºÜÆæ¹Ö£¬ÔõôÓï·¨²Å200Ò³²»µ½°¡£¬200Ò³²»µ½Ò²ÄÜ°Ñ»ù±¾ÀàÐÍ£¬º¯Êý£¬Òì³££¬À࣬OOP£¬¶¼½²Íê¡£Õâ¸úÎÒÒÔÇ°¿´C++²î¾àҲ̫´óÁË°É¡£C++ÄÇÓï·¨£¬ÕæÊÇÄÜ°ÑÄãÕÛÄ¥ËÀ°¡¡£ºóÀ´ÓÖÕÒͬѧ½èÁ˱¾pythonºËÐıà³Ì£¬·¢ÏÖÄDZߵÄÓï·¨½²µÄÏêϸ¶àÁË¡£
ËùÒÔÕ⼸ÌìתսÄDZ¾Êé¡£
      ˵ÁËÄÇô¶à£¬»¹ÊǻعéÖ÷Ìâ°É¡£Õâ¸ö³ÌÐòÆäʵºÜ¼òµ¥£¬²»ÓÃÕýÔò±í´ïʽ£¨È·ÊµÊǸöºÃ¶«Î÷£¬BoostʹC++Ò²Ö§³Öregular expressions ÁË£¬ºÇºÇ£¬Ö»ÊÇÎÒ»¹Ã»¿ªÊ¼Ñ§Ï°£©µÄ»°£¬Ò²ºÜÈÝÒס£²»ÂÞàÂÁË£¬¿´³ÌÐò°É
"""
This module is to copy file with the specific extension from one directory
to the specific directory
"""
import os
import shutil
def file_extension(fromPath,extension,toPath):
if os.path.isdir(fromPath):
fileAll = os.listdir(fromPath)
for each in fileAll:
absolutePath = os.path.join(fromPath,each)
if os.path.isdir(absolutePath


Ïà¹ØÎĵµ£º

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ʵÏÖ ¶ÓÁÐ

¶ÓÁУº
Óë¶ÑÕ»ÀàËÆ£¬Í¨¹ýpythonµÄÁбíÀàÐÍÀ´ÊµÏÖ£¬²Î¿¼ help(list)
shoplist=['apple','mango','carrot','banana']
print 'I have',len(shoplist),'items to purchase'
print 'these items are:'
for item in shoplist:
print item,
shoplist.append('rice')
print 'my shopping list is now', shoplist
shoplist. ......

Ïòpython¿¿½ü

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

ÓÃEclipse±àÒëÏòsqliteÊý¾Ý¿â²åÈëÊý¾ÝµÄpython³ÌÐò

½ñÌìÓöµ½ÁËÂé·³£º
      ÓÃEclipse±àÒëpythonÏòsqliteÊý¾Ý¿â²åÈëÊý¾Ý×ÜÊÇÌáʾ±àÂëµÄÎÊÌ⣬ÎÒÉèÖÃÁËEclipseµÄworkspaceÓÃutf-8±àÂ뻹ÊDz»ÐÐ
µ«ÊÇÓÃEclipseдµÄ³ÌÐò±£´æÔÙÓÃIDLE´ò¿ªÈ´ÄܱàÒ룬Ææ¹ÖÁË
ÎÒ¿¼Âǵ½¿ÉÄÜÊÇÅäÖõÄÔ­Òò£¬ÕÒÕÒ±éÁËËùÓеÄÅäÖ㬶¼Ã»ÓÐÎÊÌ⣬°üÀ¨¹¤³ÌÎļþ
×îºóÎÒÓÃxvi32´ò¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ