Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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++Êý×éÃûÓëÖ¸ÕëÇø±ðÉîÈë̽Ë÷

 ÒýÑÔ
¡¡¡¡Ö¸ÕëÊÇC/C++ÓïÑÔµÄÌØÉ«£¬¶øÊý×éÃûÓëÖ¸ÕëÓÐÌ«¶àµÄÏàËÆ£¬ÉõÖÁºÜ¶àʱºò£¬Êý×éÃû¿ÉÒÔ×÷ΪָÕëʹÓá£ÓÚÊǺõ£¬ºÜ¶à³ÌÐòÉè¼ÆÕ߾ͱ»¸ãºýÍ¿ÁË¡£¶øÐí¶àµÄ´óѧÀÏʦ£¬ËûÃÇÔÚCÓïÑԵĽÌѧ¹ý³ÌÖÐÒ²´íÎóµÃ¸øѧÉú½²½â£º"Êý×éÃû¾ÍÊÇÖ¸Õë"¡£ºÜÐÒÔË£¬ÎҵĴóѧÀÏʦ¾ÍÊÇÆäÖÐÖ®Ò»¡£Ê±ÖÁ½ñÈÕ£¬ÎÒÈÕ¸´Ò»ÈյؽøÐÐ×ÅC/C++ÏîÄ¿µÄ¿ª·¢£¬¶ ......

C runtime libraryµÄÔËÐÐÔ­Àí

1)ÔËÐÐʱ¿â¾ÍÊÇ C run-time library£¬ÊÇ C ¶ø·Ç C++ ÓïÑÔÊÀ½çµÄ¸ÅÄî:È¡Õâ¸öÃû×Ö¾ÍÊÇÒòΪÄãµÄ C ³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý.
2)C ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©£»ËùÒÔ£¬C ÓïÑÔÄں˿ª·¢³öÀ´Ö®ºó£¬Dennis Ritchie ºÍ Brian Kernighan ¾ÍÓà C ±¾É ......

c´úÂ룺µç»°ºÅÂëºÍ×Öĸת»»

ÕâÁ½Ìì¿´µ½ÓÐÈËÌÖÂ۵绰¼üÅÌÉϵÄ×Öĸ¡¢ºÅÂëºÍ×ÖĸµÄת»»£¬ÎÒÒ²Ëæ±ãдÁËÒ»¶Î
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define MAX_LEN 15
char *tbl_itoa[] =
{
"0", // 0
"1", // 1
"ABC", // 2
"DEF", // 3
"GHI", // 4
"JKL", // 5
"MNO", ......

Python , Delphi , Loki ÓÐȤµÄÀ´Ô´

 Python , Delphi , Loki Èý¸öµ¥´ÊÓÐȤµÄÀ´Ô´
Ðí¶à³ÌÐòÉè¼ÆÓïÑԺͿª·¢¹¤¾ßÒÔ¼°¿âµÄÃû×Ö¶¼À´Ô´ÓëÉñ»°£¬ÆÄÓÐÒâ˼£º
     °¢²¨ÂÞÊÇͬʱ³öÏÖÔÚÏ£À°ºÍÂÞÂíÉñ»°ÖеİÂÁÖÅÁ˹ʮ¶þ´óÉñÖ®Ò»¡£Ëû³ýÁËÓµÓÐÌ«ÑôÉñµÄÉí·Ö£¬Í¬Ê±»¹ÓÐÔ¤ÑÔ¡¢ÒÕÊõ¡¢Ò½ÊõÖ®ÉñµÄ³ÆºÅ¡£°¢²¨ÂÞÊÇÖæ˹ºÍÀÖ¶äµÄ¶ù×Ó£¬ºÍ°¢µÙÃÛ˹ÊÇË ......

Python¿ª·¢Activex×é¼þ

PythonÇ¿µÄ¹¦ÄܾÍÔÚÓÚËüÎÞËù²»ÄÜ¡£
ʹÓÃwin32comÄ£¿é¿ª·¢window ActiveXµÄʾÀý£º£¨Èç¹ûÄ㻹ûÓÐ×°win32comÄ£¿éµÄ»°£¬Çëµ½http://python.net/crew/skippy/win32/Downloads.htmlÏÂÔØ£©¡£
# SimpleCOMServer.py
class PythonUtilities:
_public_methods_ = ['SplitString']
_reg_progid_ = "Python.Utilities"
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ