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

pythonÈçºÎ×¥win32³ÌÐòÖÐlistboxµÄÐÅÏ¢

±ÈÈçÎÒÐèÒªÓÃpython ¶Ôwin32³ÌÐò½øÐÐÒ»¶¨µÄ¿ØÖÆ

¶ÔtextboxÊäÈëÒ»´®×Ö·û´®
°´Ä³¸öbotton

¶ÔlistboxÀïµÄµÄÄÚÈݶÁÈ¡£¬´æ³É×Ö·û´®


¸ÃÈçºÎ²Ù×÷£¿
»òÕßÄÄÀïÓÐÎĵµÀý×Ó£¿

·Ç³£¸Ðл
°ï¶¥

ÄÜ˵µÄÔÙÏêϸµãô¡£


¼ÌÐøÎÊ¡«¡«¡«¡«¡«¡«

Ê×ÏÈÁ˽âSDKÔõô°ì£¬È»ºóÓÃWIN32APIÀ´ÊµÏÖ¡£


°²×°pywin32
FindWindow
SendMessage

ÍøÉϵÄ×ÊÁÏÍùÍùÊÇÁ½¸öpythonÖ®¼äµÄͨÐÅ

ÎÒÐèÒªwin32ϵģ¬ÄܸøÐ©ÏÖ³ÉÖ¸µ¼ÐÔ×ÊÁÏô£¿ ×îºÃÈ«ÃæÐ©µÄ

ÔÙ¶¥ÔÙ¶¥

ÔÙ¶¥ÔÙ¶¥ÔÙ¶¥ÔÙ¶¥

6Â¥ºÍ7Â¥µÄ¶¼ÒѾ­»Ø´ðÄãÁË£¬»¹¶¥¸öʲô¾¢£¿


Ïà¹ØÎÊ´ð£º

PythonÖеÄUnicodeÔÚDelphiÈçºÎ»¹Ô­³ÉGb2312£¿

ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ

ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô­³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......

pythonÕýÔò±í´ïʽ ÈçºÎÈ¡³öÒÔÏÂ×Ö·û´® ¶àл

s='aaa111aaa,bbb222,333ccc,444ddd444,555eee666,fff777ggg'
ÓÃÕýÔò±í´ïʽȡ³ö ǰºó×ÖĸÏàͬµÄÊý¾Ý ½á¹ûÈçÏÂ:
111 ddd
лл~
Python code:

import re
s='aaa111aaa,bbb222,333ccc,444ddd444,555eee666,ff ......

python listÖÐÌí¼ÓÀà¶ÔÏóµÄÎÊÌâ

ÔÚlistÖÐÌí¼ÓÒ»¸öÀàµÄ¾Ö²¿±äÁ¿ ÕâÑù×öÊÇ·ñºÏ·¨ Çë¿´ÏÂÃæÀý×Ó:
Python code:

class A():
def __init__( self ):
self.__a = 0
self.__b = 'hello'
def get_a( self ):
ret ......

¹ØÓÚpythonÓïÑÔÈýÒýºÅµÄÎÊÌâ

pythonµÄ×¢ÊÍÊÇʹÓÃ#¼ÓÔÚ×¢ÊÍ֮ǰ£¬Èç¹ûÓжàÐоÍÒª´òºÜ¶à¸ö#£¬Ã»ÓÐÀàËÆCÓïÑÔ/*µÄÓ÷¨¡£

µ«ÊÇpythonÀïÓÐÈýÒýºÅµÄÓ÷¨£¬Èç¹û²»½«ÈýÒýºÅ¸³Öµ¸ø±äÁ¿£¬ÄÇôÕâ¸ö×Ö·û´®¾Í»á²úÉúºÍ×¢ÊÍÀàËÆµÄЧ¹û¡£

Èç¹ûÕâÖÖÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ