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

ʹÓÃPythonÓïÑÔÉè¼Æ»ùÓÚHTMLµÄCÓïÑÔÓï·¨¼ÓÁÁÏÔʾ³ÌÐò

2005-2006ѧÄêµÚ1ѧÆÚ
±à Òë Ô­ Àí 
¿Î ³Ì Éè ¼Æ ±¨ ¸æ
°à¼¶   02¼Æ(¶þ)   
ѧºÅ     19     
ÐÕÃû     ÁõÏþÃ÷     
³É¼¨           
Ö¸µ¼½Ìʦ   ¬³¯»Ô   
Ò»¡¢   Éè¼ÆÄ¿µÄ
¼ÓÉî¶Ô±àÒëÔ­ÀíµÄ½øÒ»²½ÈÏʶ£¬¼Óǿʵ¼ù¶¯ÊÖÄÜÁ¦ºÍ³ÌÐòµÄ¿ª·¢ÄÜÁ¦ÅàÑø£¬Ìá¸ß·ÖÎöÎÊÌâºÍ½â¾öÎÊÌâµÄÄÜÁ¦¡£
¶þ¡¢   Éè¼ÆÈÎÎñ
1.µ¥´Êʶ±ð
CÓïÑÔ³£Êý
CÓïÑÔ±êʶ·û
2.³ÌÐòµÄÎı¾´¦Àí
½«CÓïÑÔµÄËùÓÐ×¢ÊÍ×Öĸ´óд
½«CÓïÑÔµÄËùÓб£Áô×Ö´óд
3.µÝ¹éϽµ·ÖÎö
Èý¡¢   Éè¼Æ¹ý³Ì
1.×ÜÌåÉè¼Æ
ͨ¹ý¶ÁÈëCÓïÑÔÔ´ÎļþÖ®ºóÉú³ÉÏà¹ØµÄ´Ê·¨·ÖÎö£¬²¢Êä³ö³É¾­¹ý´Ê·¨¼ÓÁÁµÄHTMLÎļþÓÃÓÚÏÔʾ¡£ÁíÍâÊä³öµ¥´Ê·ûºÅ±í¡£Éú³ÉµÄHTMLÎļþµÄÎļþÃûΪout.html£¬µ¥´Ê·ûºÅ±íÎļþΪtoken.txt¡£
ÔËÐз½·¨Îª£º½øÈëdistÎļþ¼ÐÔËÐÐmain *.c¡£ÕâÀïµÄ*Ì滻ΪCÓïÑÔÎļþÃû£¬ºó׺ÃûΪC£¬µ«ÊÇÒ²¿ÉÒÔʹÓÃÆäËûºó׺Ãû¡£Ê¹ÓÃĬÈÏÉèÖõÄÆô¶¯ÇëÖ±½ÓË«»÷distĿ¼ÏÂrun.batÎļþ£¬Ä¬ÈÏ·ÖÎösample.cÎļþ¡£
³ÌÐò·ÖΪÈý¸öÄ£¿é£ºHTMLÄ£¿é¸ºÔðÌṩHTMLÎļþÉú³ÉÏà¹ØµÄϸ½Ú£»wordfixÄ£¿éÌṩ´Ê·¨·ÖÎöµÄ²½Ö裻mainÄ£¿éÌṩÁËÎļþI/OºÍ³ÌÐò×ÜÌå¿ØÖÆ¡£
2.HTML.py
ʵÏÖÁËHTMLÎļþµÄÏà¹Øϸ½Ú¡£°üº¬ÒÔϺ¯Êý£º
writehead()
ÓÃÓÚÉú³ÉHTMLÎļþÍ·
writeline(line)
ÓÃÓÚÊä³öһЩÊý¾Ýµ½HTMLÎļþ²¢¼ÓÈëÁ½ÖÖ»»ÐУ¬·Ö±ðʵÏÖHTMLÔ´ÎļþºÍHTMLÏÔʾ¸ñʽµÄ»»ÐÐ
writeident(line)
Êä³ö±êʶ·ûµ½HTMLÎļþ
writekeyword(line)
Êä³ö¹Ø¼ü×Öµ½HTMLÎļþ
writecomment(line)
Êä³ö×¢ÊͺÍÔ¤´¦Àí´®µ½HTMLÎļþ
writeconst(line)
Êä³ö³£ÊýºÍ×Ö·û´®µÈ³£Á¿µ½HTMLÎļþ
writeoper(line)
Êä³öËã·ûºÍ½ç·ûµ½HTMLÎļþ
writetail(line)
Êä³öHTMLÎļþµÄ½áβ²¢¹Ø±ÕHTMLÎļþ
fixmark(instr)
ÓÉÓÚä¯ÀÀÆ÷ÎÞ·¨ÏÔʾһЩÌØÊâ×Ö·û£¬Ö»ÄÜÊÂÏÈÔÚHTMLÎļþÖÐת»»³ÉÆäËû×Ö·û´®£¬fixmarkº¯ÊýÌṩÕâÖÖת»»¡£ÐèҪת»»µÄ×Ö·û°üÀ¨¼¸Öֿհ׺Í&¡¢"¡¢>¡¢<µÈ¡£
HTMLÄ£¿é×îºóÌṩÁ˵¥Ôª²âÊÔÓõÄÖ÷·½·¨¡£Ä£¿éÖ»ÓÐÒ»¸ö³ÉÔ±outfileÓÃÓÚÈ«¾ÖµÄ´æ´¢Êä³öHTMLµÄÎļþ¾ä±ú¡£
3.main.py
ÌṩÁ˳ÌÐòÆô¶¯ºÍÎļþI/OµÄ²Ù×÷¡£°üÀ¨ÒÔϺ¯Êý£º
openfile(filename)
Ôھ߱¸´íÎó´¦ÀíµÄÇé¿öÏ´ò¿ªÎļþµÄ·þÎñ£¬´ò¿ª³É¹¦Ôò·µ»ØÎļþ¾ä±ú£¬Ê§°ÜÔò·µ»ØFalse
showfile(filename)
ÌṩÎļþ´ò¿ª²âÊÔºÍÏÔʾ¹¦ÄÜ
Ö÷·½·¨ÌṩÁËÎļþ´ò¿ª£¬ÉèÖÃ


Ïà¹ØÎĵµ£º

cÓëc++ staticº¯ÊýµÄÇø±ð

 
cÓëc++ staticº¯ÊýµÄÇø±ð

c
Óëc++ static
º¯ÊýµÄÇø±ð
static
¹Ø¼ü×ÖÊÇ
C, C++
Öж¼´æÔڵĹؼü×Ö
,
ËüÖ÷ÒªÓÐÈýÖÖʹÓ÷½Ê½
,
ÆäÖÐÇ°Á½ÖÖÖ»Ö¸ÔÚ
C
ÓïÑÔÖÐʹÓÃ
,
µÚÈýÖÖÔÚ
C++
ÖÐʹÓÃ
(C,C++
ÖоßÌåϸ΢²Ù×÷²»¾¡Ïàͬ
,
±¾ÎÄÒÔ
C++
Ϊ׼
).
(1)
¾Ö²¿¾²Ì¬±äÁ¿
(2)
Íⲿ¾²Ì ......

linuxÏÂCÓïÑÔ¶àÏ̱߳à³ÌʵÀý


À¼´óÂÛ̳ÉϵÄÒ»¸öÌû×Ó¡«¡«
ѧ¶«Î÷£¬ÍùÍùʵÀý²ÅÊÇ×îÈÃÈ˸ÐÐËȤµÄ£¬ÀÏÊÇѧ»ù´¡ÀíÂÛ£¬²»¶¯ÊÖ£¬¸Ð¾õûÓгɾ͸У¬ºÇºÇ¡£
ÏÂÃæÏÈÀ´Ò»¸öʵÀý¡£ÎÒÃÇͨ¹ý´´½¨Á½¸öÏß³ÌÀ´ÊµÏÖ¶ÔÒ»¸öÊýµÄµÝ¼Ó¡£
»òÐíÕâ¸öʵÀýûÓÐʵ¼ÊÔËÓõļÛÖµ£¬µ«ÊÇÉÔ΢¸Ä¶¯Ò»Ï£¬ÎÒÃǾͿÉÒÔÓõ½ÆäËûµØ·½È¥À­¡£
ÏÂÃæÊÇÎÒÃǵĴúÂ룺
/*thread_example.c : c ......

ɾ³ý¹¤³ÌÖÐsvnÎļþµÄ½Å±¾(Ruby°æºÍPython°æ)

Á½ÖÖ²»Í¬µÄÓïÑÔ,²»Í¬µÄ±í´ï!
Python½Å±¾ÊµÏÖ.
""
"
    File Name : clean.py
    File Date : 2009/11/5 14:22:56
    Author     : DannyLai
    Purpose     : Cle ......

ODBC C±à³Ì·ÃÎÊÊý¾Ý¿â

 Ð½¨Ò»¸öWin32 Application£¬²¢ÔÚÏàÓ¦Îļþ¼ÐÏÂн¨Ò»¸öbook.mdb£¬ ÀïÃæÓÐÒ»¸ö±íBookInfo£¬±íÖÐÓÐÒÔϼ¸Àý£º
id:
BookName:
Author:
µÈ£»
//------------------------------------------------------------------------------
// Copyright (c) 2009 eryar All rights reserved.
//
// File : Main.cpp
// ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ