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

PythonÖÐÎÄ´¦Àí£¬Íê³É¹¦ÄܵÄʵÓû¯

±¾ÎÄÕª×Ô¡¶¿É°®µÄPython¡·¡°¹âÅ̹ÊÊ¡±CDay-1 ʵÓû¯ÖÐÎÄ¡£
[img]http://t.douban.com/mpic/s3901817.jpg[/img]
CDay-1 ʵÓû¯ÖÐÎÄÖÐÎÄ´¦Àí£¬Íê³É¹¦ÄܵÄʵÓû¯
ÄãÅöµ½99%µÄÎÊÌ⣬ÆäËûÈË֮ǰÒѾ­Óöµ½¹ýÁË£¬ËùÒÔ£¬×î¼ÑµÄ½â¾ö·½Ê½¾ÍÊÇÕÒµ½ÄǶαðÈ˽â¾öÏàËÆÎÊÌâµÄ´úÂ룡
»Ø¹ËÐèÇóС°×ÒѾ­ÊµÏÖµÄÐèÇó¿ÉÒÔʵÏÖÈçϹ¦ÄÜ¡£
1. ¿ÉÒÔɨÃè¹âÅÌÄÚÈÝ£¬²¢´æ´¢ÎªÓ²ÅÌÉϵÄÎı¾Îļþ¡£
1£©´æ´¢³É*.cdc µÄÎı¾Îļþ£»
2£©¿ìËÙÖ¸¶¨±£´æĿ¼£»
3£©¿ìËÙÖ¸¶¨±£´æµÄÎļþÃû¡£

2. ¿ÉÒÔ¸ù¾Ý´¢´æµ½Ó²ÅÌÉϵĹâÅÌÐÅÏ¢½øÐÐËÑË÷¡£
1£©ËÑË÷Ö¸¶¨Ä¿Â¼ÖÐËùÓÐ*.cdcÎļþ£»
2£©Ö¸¶¨¹Ø¼ü×Ö½øÐÐËÑË÷£»
3£©ÁгöËùÓк¬Óйؼü×ÖµÄÐÅÏ¢ÐС£

½øÒ»²½³¢ÊÔ
»ØÏëÆðÀ´£¬Ò»Ö±³¢ÊÔËÑË÷µÄ¶¼ÊÇÓ¢ÎĹؼü×Ö£¬ÖÐÎĵÄûÓÐÊÔ¹ý¡£
³¢ÊÔÀ´¼¸Ï£¡¡­¡­Îغõ£¬Ê²Ã´Ò²²é²»³öÀ´£¡
²éÔļǼÎı¾ÏÈÀ´¿´¿´Í¼CDay-1-1¡£
[img]http://bbs3.chinaunix.net/post.php?action=edit&fid=55&tid=1584091&pid=11256915&page=1&extra=page%3D1[/img]
ͼCDay-1-1 mymusic-1.cdcÄÚÈÝ
ÕâÖÖÊý¾Ý¶ÔÂð£¿
µ±³õΪÁ˼òµ¥£¬Ê¹ÓÃÎĵµÖеĻù±¾ÐÍ£¬¼´£º
#'cdctools.py' ÖÐ cdWalker(cdrom,cdcfile) µÄ¶¯×÷
...
for root, dirs, files in os.walk(cdrom)£º
export+="\n %s;%s;%s" % (root,dirs,files)
...
¾ÍÊÇʹÓà os.walk() µÄÌìÈ»Êä³ö×éÖ¯³ÉÿһÐУº
/media/cdrom0/EVA/Death-Rebirth;[];['eva8-01.Mp3', 'eva8-02.Mp3',...]
^                         


Ïà¹ØÎÊ´ð£º

pythonÖÐÏß³ÌÎÊÌ⣿£¿

ÎÒÏÖÔÚÊÇÕâÑùµÄ
¿ªÁËÒ»¸ö×ÓỊ̈߳¬¶ÁÈ¡ÏÂÃæµÄÏûÏ¢
±¾ÒâÊÇ
Python code:

while not self._stopevent.isSet( ):
re=¶ÁȡϲãÏûÏ¢
if re>0:
´¦Àí
else:
pass

¼ÙÈ ......

¹ØÓÚpython¶ÁÁÐÊý¾Ý

a.txt
ÎļþÄÚÈÝÈçÏ£¨ÆäÖпհײ¿·Ö¶¼ÊÇÒÔtab¼ü¸ô¿ª£©£º

om 2 0.68 0.83 0 0 0 0 0 0
pos
ppa 17 0.74 0.9 0 0 0 1 2 2
ppc    2           & ......

python½âѹËõµÄÎÊÌâ

pythonÈçºÎ½âѹËõ.ZµÄÎļþ°¡£¬ÔÚwindowsϵͳ»·¾³ÏÂ
Q7Z ÊÇÒ»¿î»ùÓÚ Qt4 µÄ 7z ѹËõ¹¤¾ß
http://code.google.com/p/k7z/

¿ªÔ´µÄ

http://sourceforge.net/projects/k7z/

LSµÄÄܾßÌå˵һ˵Âð£¿
......

ÓÃPythonʵÏÖÒ»¸ö¼òµ¥µÄͨѶ¼

¸÷λ¸ßÊÖ£¬ÄÄλÄÜд¸ö¼òµ¥µÄͨѶ¼£¬Ö»±£´æÐÕÃûºÍÊÖ»úºÅ£¬Äܱ£´æµ½Ó²Å̲¢¿É¶Á»Ø£¬ÓÐÌí¼Ó£¬É¾³ý£¬Ð޸ģ¬²éѯ¹¦ÄÜ£¬ÃüÁîÐÐʽµÄ¾ÍÐÐ
ÕâÖÖ»îÄãµÃ×Ô¼º¸É£¬ÓÐÎÊÌâ¿ÉÒÔÎÊ£¬µ«²»»áÓÐÈË°ïÄã×öµÄ¡£

¸øÄãÔ´Âë
http://dow ......

python½Ì³ÌÖÐʹÓÃÔ´ÎļþµÄÎÊÌâ~~

ʹÓÃÔ´Îļþ

#!/usr/bin/python
# Filename : helloworld.py
print 'Hello World'

ÎÒÔõôҲ¿´²»¶®£¡Ö»ÊÇ×îºóÒ»ÐÐÎÒÖªµÀ~~Ç°ÃæÁ½ÐÐÊÇʲôÒâ˼ÄØ£¿
½Ì³ÌÉÏ˵Èç¹ûÄãʹÓÃIDLE£¬ÇëʹÓò˵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ