·¢ÏÖpython2.6
import httplib
conn=httplib.HTTPSConnection('x.x.x.x')
conn.request('','')
rd=conn.getresponse()
conn.close()
ÕâÑù½áÊøºó»á±ä³ÉCLOSE_WAIT״̬£¬ÎÒµÄÊÇ·þÎñ¶ËÖ÷¶¯¶Ï¿ªÁ¬½ÓµÄ£¬·¢ÏÖ¿Í»§¶ËÔÚconn.close()µÄʱºò²»»á·¢fin°ü£¬
ÎÒÔÚÍøÉÏËѹýһЩ½â¾ö°ì·¨£¬¸ ......
rt
Õâ¸öÔõôʵÏÖ£¬Ð»Ð»£¡
±ÈÈ磬ÎÒ·¢ÏÖij¸öÍøÕ¾ºÜºÃÍæ¡£ÎÒÏëÓÃpythonд¸ö³ÌÐò×¢²áµ½Õâ¸öÍøÕ¾ÉÏ¡£ÔõôʵÏÖ£¿
up¼ÌÐøµÈ»Ø¸´
ÒýÓÃ
¶Ô·½¿ÉÄÜÓз´auto»úÖÆ£¬±ÈÈçʶ±ðÂëµÈ¡£ËùÒÔÄãµÄ¹¤³ÌÁ¿¾Í´óÁË¡£
Õâ¸öÁ˽â
ÓÐûÓÐʲôÀý×Ó¡£¼òµ¥µÄÒ²¿ÉÒÔ¡£
......
delÓï¾äÊÇÓÃÀ´É¾³ý±äÁ¿ÒýÓõģ¬ÔÚʵ¼ÊÓ¦ÓÃÖÐʲô³¡ºÏÏ»áÓõ½£¨python²»ÊÇ×Ô¶¯ÓÐÀ¬»øÊÕ¼¯Â𣿣©
getattrºÍsetattrÓÐʲôÌØÊâÓÃ;Â𣬻¹ÊÇÖ»¸újavaÖеÄgetter ºÍsettterÏàͬ£¬Ã»ÓÐÌØÊ⹦ÄÜÉϵÄÓô¦£¿
Õâ2¸öÎÊÌâÀ§ÈÅÎҺܳ¤Ê±¼äÁË
1. ±ÈÈ磺
Python code:
>>> a
[1, 66.6, 333, 333, 1234.5]
& ......
#include "stdafx.h"
#include <boost/python/def.hpp>
#include <boost/python/module.hpp>
#include <boost/python/args.hpp>
#include <boost/python/class.hpp>
#include <boost/python/str.hpp>
#include <boost/python/dict.hpp>
#incl ......
ÇëÎʸßÊÖ£¬ÎÒÓõÄÊÇpythonwin2.5µÄ°æ±¾£¬ÔÚ¿ª·¢µÄ¹ý³ÌÖÐÓöµ½ÁËÏÔʾÖÐÎÄÂÒÂëµÄÎÊÌâºÜÍ·ÌÛ£¬Çë¸ßÊִͽ̡£
¼òµ¥µÄ´úÂëÈçÏ£¬±£´æµÄÎļþÃûÊÇÓ¢Îĵģ¬ÎÒÊÇÓÃpythonwinн¨µÄ½Å±¾£¬±£´æµÄʱºòÑ¡ÏîÀïûÓбàÂëÑ¡ÏÔËÐкóÏÔʾÂÒÂ룺\xc0\xad\xb6\xfb\xb7\xf2 ', '\xc4\xd0 ......
ÎÒÓÃpythonµÇ½asp.netÍøÕ¾£¨×Ô¼º×öµÄ£©¡£
ʼþ²»Ö´ÐУ¬µ«ÊÇÓз´À¡¡£´ÓµÇ½ҳתµ½ÁË×¢²áÒ³¡£Ôõô»ØÊ£¿
Ï£Íû¸ßÊÖ¸ø¸ö½â´ð
¸ã¶¨ÁË
Òª·ÃÎÊasp.entµÄÍøÕ¾µÄ»°£¬Èç¹ûÍøÕ¾½ÓÊܵÄÊÇ·þÎñÆ÷¿Ø¼þµÄÖµµÄ»°£¬ÐèÒªÔÙ·ÃÎÊÖаÑĬÈÏÉú³ÉµÄÒþ²ØÓòµÄÖµÒ²Ò»Æðpost»ØÈ¥
²ÎÓëµÄÕÕÑùÓзÖ
......