pythonÈçºÎ×¥win32³ÌÐòÖÐlistboxµÄÐÅÏ¢
±ÈÈçÎÒÐèÒªÓÃpython ¶Ôwin32³ÌÐò½øÐÐÒ»¶¨µÄ¿ØÖÆ
¶ÔtextboxÊäÈëÒ»´®×Ö·û´®
°´Ä³¸öbotton
¶ÔlistboxÀïµÄµÄÄÚÈݶÁÈ¡£¬´æ³É×Ö·û´®
¸ÃÈçºÎ²Ù×÷£¿
»òÕßÄÄÀïÓÐÎĵµÀý×Ó£¿
·Ç³£¸Ðл
°ï¶¥
ÄÜ˵µÄÔÙÏêϸµãô¡£
¼ÌÐøÎÊ¡«¡«¡«¡«¡«¡«
Ê×ÏÈÁ˽âSDKÔõô°ì£¬È»ºóÓÃWIN32APIÀ´ÊµÏÖ¡£
°²×°pywin32
FindWindow
SendMessage
ÍøÉϵÄ×ÊÁÏÍùÍùÊÇÁ½¸öpythonÖ®¼äµÄͨÐÅ
ÎÒÐèÒªwin32ϵģ¬ÄܸøÐ©ÏÖ³ÉÖ¸µ¼ÐÔ×ÊÁÏô£¿ ×îºÃÈ«ÃæÐ©µÄ
ÔÙ¶¥ÔÙ¶¥
ÔÙ¶¥ÔÙ¶¥ÔÙ¶¥ÔÙ¶¥
6Â¥ºÍ7Â¥µÄ¶¼ÒѾ»Ø´ðÄãÁË£¬»¹¶¥¸öʲô¾¢£¿
Ïà¹ØÎÊ´ð£º
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
s='aaa111aaa,bbb222,333ccc,444ddd444,555eee666,fff777ggg'
ÓÃÕýÔò±í´ïʽȡ³ö ǰºó×ÖĸÏàͬµÄÊý¾Ý ½á¹ûÈçÏÂ:
111 ddd
лл~
Python code:
import re
s='aaa111aaa,bbb222,333ccc,444ddd444,555eee666,ff ......
ÔÚlistÖÐÌí¼ÓÒ»¸öÀàµÄ¾Ö²¿±äÁ¿ ÕâÑù×öÊÇ·ñºÏ·¨ Çë¿´ÏÂÃæÀý×Ó:
Python code:
class A():
def __init__( self ):
self.__a = 0
self.__b = 'hello'
def get_a( self ):
ret ......
pythonµÄ×¢ÊÍÊÇʹÓÃ#¼ÓÔÚ×¢ÊÍ֮ǰ£¬Èç¹ûÓжàÐоÍÒª´òºÜ¶à¸ö#£¬Ã»ÓÐÀàËÆCÓïÑÔ/*µÄÓ÷¨¡£
µ«ÊÇpythonÀïÓÐÈýÒýºÅµÄÓ÷¨£¬Èç¹û²»½«ÈýÒýºÅ¸³Öµ¸ø±äÁ¿£¬ÄÇôÕâ¸ö×Ö·û´®¾Í»á²úÉúºÍ×¢ÊÍÀàËÆµÄЧ¹û¡£
Èç¹ûÕâÖÖÓ ......