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

Èà easy_install ʹÓôúÀí·­Ç½°²×° Python Ä£¿é

ÀµÓºƣ¨http://laiyonghao.com£©
¹Ø¼ü×Ö£ºpython, easy_install, setuptools, myentunnel, polipo, windows, linux, socks5, http, proxy
ÒòΪһЩÖÚËùÖÜÖªµÄÔ­Òò£¬ÎÒÃÇÓÐЩÍøÕ¾ÎÞ·¨·ÃÎÊ£¬Ôì³ÉÉú»îºÍÉú²úµÄ¾Þ´ó²»±ã¡£ÆäÖжÔÎÒÓ°Ïì±È½Ï´óµÄÒ»¸ö¾ÍÊÇ°²×°Ä³Ð© Python Ä£¿éµÄʱºò£¬easy_install ÎÞ·¨·ÃÎʵ½ÍøÕ¾¡£ÔÚÕâÀï·ÖÏíÈà easy_install ʹÓôúÀíµÄ·½·¨£¬Èç¹ûÄãÓµÓÐ socks5 »ò http ´úÀí·þÎñÆ÷¿ÉÓã¬Õâ¸ö·½·¨Äܹ»Èà easy_install ÍêÃÀµØ¿çÔ½³¤³Ç¡£
http
Ê×ÏȽéÉÜÈÝÒ×ʵÏÖµÄ http ·½Ê½¡£µÃÒæÓÚ python Ä£¿é urllib Äܹ»Í¸Ã÷ʹÓôúÀíµÄÄܹ»£¬easy_install ʹÓà http ´úÀíÊǷdz£·½Ê½µÄ¡£ÎÞÂÛÔÚ windows »¹ linux Ï£¬Ö»ÒªÉèÖúà http_proxy »·¾³±äÁ¿¾Í¿ÉÒÔÁË¡£
Äã¿ÉÒÔÔÚ windows ÃüÁîÐÐÖ´ÐУºset HTTP_PROXY=http://your.proxy.com:yourPort »òÔÚ linux ÏÂÖ´ÐУºexport HTTP_PROXY="http://your.proxy.com:yourPort"£¬È»ºóÔÙÖ´ÐÐ easy_install ¼´¿É¡£
socks5
ÓÉÓÚÄǵÀǽµÄ´æÔÚ£¬Ðí¶àÈËÊÇͨ¹ý VPS µÄ SSH ·­Ç½µÄ£¬ÔÚ windows ϳ£ÓõÄÒ»¸öÈí¼þÊÇ myentunnel£¬ËüÄܹ»Ìṩ socks5 ´úÀí·þÎñ¡£¿Éϧ easy_install ûÓа취ֱ½ÓʹÓà socks5 ´úÀí£¬ËùÒÔÐèÒªÒ»¸öÈí¼þÀ´°Ñ socks5 ´úÀíת»»Îª http ´úÀí¡£Í¨¹ý twitter ÉÏÐí¶àÓѺÃÈËÊ¿µÄÌáµã£¬ÎÒÑ¡ÔñÁË polipo Õâ¸öÈí¼þÀ´´òÔì http ´úÀí¡£
polipo ʹÓ÷dz£¼òµ¥£¬ÔÚÕâÀhttp://interloper.org/tmp/polipo/polipo-1.0.4.1-forbidden-1-win32.exe£©ÏÂÔص½Ò»¸ö windows ϵݲװÎļþ£¬Ò»Â· next °²×°¼´¿É£¬°²×°ºó½øÈë polipo.exe ËùÔڵݲװĿ¼£¬ÓüÇʱ¾»òÆäËü±à¼­Æ÷£¨ÎÒʹÓà gvim£©´ò¿ª config Îļþ£¬ÕÒµ½ÏÂÃæÁ½ÐУº
# socksParentProxy = “localhost:9050″
# socksProxyType = socks5
È»ºó°ÑÇ°ÃæµÄ # È¥µô£¬°Ñ 9050 ¸Ä³ÉÄãµÄ socks5 ·þÎñÆ÷µÄ¶Ë¿Ú£¬ÎÒʹÓõÄÊÇ myentunel ĬÈ쵀 1080£¬È»ºó±£´æ¹Ø±Õ¡£
ÏÖÔÚͨ¹ý¿ªÊ¼²Ëµ¥ÔËÐÐ polipo£¬ÄãÓ¦¸Ã¿ÉÒÔ¿´µ½ Established listening socket on port 8123 ×ÖÑù£¬±íʾÔËÐгɹ¦ÁË¡£ÕâʱÔÙͨ¹ýÉÏÎĵķ½·¨°Ñ http://127.0.0.1:8123 ÉèÖÃΪ http_proxy »·¾³±äÁ¿£¬ÄãµÄ easy_install ¾Í¿ÉÒÔ·­Ç½ÁË¡£
ÆäËü·½°¸
×ÔÓÉµÄ linux ϵ±È»ÓÐןü·á¸»µÄ·½Ê½£¬polipo ±¾ÉíÊǸö¿çƽ̨Èí¼þ£¬Ò²¿ÉÒÔʹÓà @number5¡¢@kynix ºÍ @kypudding ÍƼöµÄ tscoks ÒÔ¼° ProxyChains£¬windows ÏÂÒ²»¹¿ÉÒÔʹÓà SocksCap¡£¶øÎÒ²ÉÓÃµÄ polipo ·½°¸À´×Ô @BOYPT µÄÍƼö£¬¸ÐлËù


Ïà¹ØÎĵµ£º

python²Ù×÷excelÐÔÄÜÎÊÌâÇóÖú

http://bbs.chinaunix.net/thread-1586782-1-1.html
ÎÒ¸Õ¸ÕÓÃpythonдÁËÒ»¶Î²Ù×÷excelµÄ½Å±¾£¬Ä¿µÄÊÇ°ÑÒ»¸öexcelÎļþ°´ÕÕijһÁÐÖеÄ×ֶβð·Ö³É¶à¸öÎļþ£¬ÀýÈç°´ÕÕ³ÇÊлòÕßÊ¡·ÝµÈ£¬µ«ÊÇ·¢ÏÖ´¦ÀíÒ»¸ö1700ÐеÄÎļþ²ð·Ö³É40¶à¸öÎļþʱҪÔËÐÐ30·ÖÖÓ×óÓÒ£¬ÐÔÄÜÌ«Âý£¬Çë¸ßÊÖ°ïæ¿´¿´Ôõô²ÅÄÜÓÅ»¯ÐÔÄÜ£¬Ð»Ð»¡£
ÐÂÊÖдµÄ½Å±¾£¬Çë²» ......

python timeÄ£¿éÏê½â

 python µÄÄÚǶtimeÄ£°å·­Ò뼰˵Ã÷
 
Ò»¡¢¼ò½é
  timeÄ£¿éÌṩ¸÷ÖÖ²Ù×÷ʱ¼äµÄº¯Êý
  ˵Ã÷£ºÒ»°ãÓÐÁ½ÖÖ±íʾʱ¼äµÄ·½Ê½:
       µÚÒ»ÖÖÊÇʱ¼ä´ÁµÄ·½Ê½(Ïà¶ÔÓÚ1970.1.1 00:00:00ÒÔÃë¼ÆËãµÄÆ«ÒÆÁ¿),ʱ¼ä´ÁÊÇΩһµÄ
       µÚ¶þÖÖÒÔÊý× ......

½«PythonºÍAutoHotkey½áºÏÆðÀ´

http://www.autohotkey.com/forum/topic53773.html
Q:I am searching for is a way to execute AHK commands from a Python script. Is this possible?
A:Yes. Here is an example. 
tested with python2.6, requires AutoHotkey.dll in the working directory or path... 
ahkpython.py:
#Persistent
dllc ......

python ¶ÁxmlÎļþ

def getText(self,nodelist):
rc=""
for node in nodelist:
if node.nodeType == node.TEXT_NODE or node.nodeType == node.CDATA_SECTION_NODE:
rc = rc + node.data
return rc
def parseXML(self,requesturl,xml):
dom = minidom.parse(requesturl)
for node in dom.getElementsByTagName('ca ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ