python·ÃÎÊÍøÒ³´øcookieÎÊÌâ
ÎÒÏÖÔÚÒªÓÃpython·ÃÎÊÒ»¸öÍøÕ¾µÄÍøÒ³£¬È¡µÃһЩÐÅÏ¢
µ«ÊÇÍøÕ¾ÒªÇóÏȵǼ£¬È»ºó²ÅÄܼÌÐø·ÃÎÊ£¬µÇ¼¹ý³Ì¾ÍÊÇдÁ˸öcookie
ÇëÎÊÏÂpython·ÃÎÊÍøÒ³Ôõô±£³ÖסcookieÄØ£¿
ÎÒÓõÄÊÇpython3.1£¬Ö»ÓÐurllibºÍhttpÁ½¸ö¿âÁË
ÍøÉÏÕÒÁËһЩ´úÂ룬¶¼ÊÇpython2.x°æ±¾µÄ
ÄÄλºÃÐĵÄÐÖµÜд¼¸¾äpython3.1µÄ´úÂ룬¸Ð¼¤²»¾¡
ÎÒÒ²ÏëÖªµÀ
Çë²Î¿´cookiejar
ÎÒÒ²ÏëÖªµÀ
˳±ãÎÊÒ»¸öÎÊÌ⣬ÈçºÎ¶ÔÒ³ÃæÀïµÄÌõ¼þÑ¡ÔñºóÔÙ·ÃÎÊÕ¾µã£¬ÓеÄÕ¾µã±ÈÈç´øËÑË÷¹¦ÄÜ£¬ÐèҪѡÔñËÑË÷Ìõ¼þ£¬È»ºóÔÙÈ·ÈÏ·¢³öÓÉÕ¾µã·µ»Ø²éÑ¯Ò³Ãæ¡£
ÔÚpythonÀïÈçºÎ¶ÔÕâЩËÑË÷Ìõ¼þ½øÐÐÑ¡Ôñѽ£¿
ÖªµÀÁË£¬ÓÃPAMIE
Ïà¹ØÎÊ´ð£º
ËÍÆ¼öÒ»±¾Ñ§Ï°PYTHONµÄÊ飬лл
¡¶python¼òÃ÷½Ì³Ì¡·£¬¡¶pythonºËÐıà³Ì¡·
×÷Ϊϵͳ¹ÜÀí·½Ãæ£¬¡¶Python UNIXºÍLinuxϵͳ¹ÜÀíÖ¸ÄÏ¡·ÊDZ¾·Ç³£²»´íµÄÊé¡£
http://club.book.csdn.net/pic3/255142.jpg
ÒýÓÃ
×÷Î ......
ÔÚlistÖÐÌí¼ÓÒ»¸öÀàµÄ¾Ö²¿±äÁ¿ ÕâÑù×öÊÇ·ñºÏ·¨ Çë¿´ÏÂÃæÀý×Ó:
Python code:
class A():
def __init__( self ):
self.__a = 0
self.__b = 'hello'
def get_a( self ):
ret ......
·¢ÏÖpython2.6
import httplib
conn=httplib.HTTPSConnection('x.x.x.x')
conn.request('','')
rd=conn.getresponse()
conn.close()
ÕâÑù½áÊøºó»á±ä³ÉCLOSE_WAIT״̬£¬ÎÒ ......
ÎÒµÄÑо¿·½ÏòÊÇÖÐÎÄÐÅÏ¢´¦ÀíÖеÄÎı¾·ÖÀàÏà¹ØµÄ¶«¶«
ÔÙ¾ßÌåÒ»µã¾ÍÊÇÎı¾ÇãÏòÐÔ£¬Çé¸Ð·ÖÀàÖ®ÀàµÄ¶«¶«¡£¡£¡£¡£
ÏëѧһÃŽű¾ÓïÑÔÀ´±à³Ì¡£¡£¡£
Ï£Íû´ó¼Ò°ïÃ¦ÍÆ¼öһϰ¡ лл
Õâ¶ÔÎÒÀ´ËµºÜÖØÒªµÄ
Ó¦¸Ã¶¼ÐÐ ......