Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Python

pythonÈçºÎÉèÖÃCLOSE_WAIT״̬ռÓõĶ˿ÚÖØÓÃ

·¢ÏÖpython2.6
import httplib
conn=httplib.HTTPSConnection('x.x.x.x')
conn.request('','')
rd=conn.getresponse()
conn.close()
ÕâÑù½áÊøºó»á±ä³ÉCLOSE_WAIT״̬£¬ÎÒµÄÊÇ·þÎñ¶ËÖ÷¶¯¶Ï¿ªÁ¬½ÓµÄ£¬·¢ÏÖ¿Í»§¶ËÔÚconn.close()µÄʱºò²»»á·¢fin°ü£¬
ÎÒÔÚÍøÉÏËѹýһЩ½â¾ö°ì·¨£¬¸ ......

python ÔÚÍøÕ¾×¢²áÓû§

rt
Õâ¸öÔõôʵÏÖ£¬Ð»Ð»£¡

±ÈÈ磬ÎÒ·¢ÏÖij¸öÍøÕ¾ºÜºÃÍæ¡£ÎÒÏëÓÃpythonд¸ö³ÌÐò×¢²áµ½Õâ¸öÍøÕ¾ÉÏ¡£ÔõôʵÏÖ£¿

up¼ÌÐøµÈ»Ø¸´


ÒýÓÃ
¶Ô·½¿ÉÄÜÓз´auto»úÖÆ£¬±ÈÈçʶ±ðÂëµÈ¡£ËùÒÔÄãµÄ¹¤³ÌÁ¿¾Í´óÁË¡£

Õâ¸öÁ˽â
ÓÐûÓÐʲôÀý×Ó¡£¼òµ¥µÄÒ²¿ÉÒÔ¡£
......

Çë½Ì2¸öpythonµÄÎÊÌâ

delÓï¾äÊÇÓÃÀ´É¾³ý±äÁ¿ÒýÓõģ¬ÔÚʵ¼ÊÓ¦ÓÃÖÐʲô³¡ºÏÏ»áÓõ½£¨python²»ÊÇ×Ô¶¯ÓÐÀ¬»øÊÕ¼¯Â𣿣©

getattrºÍsetattrÓÐʲôÌØÊâÓÃ;Â𣬻¹ÊÇÖ»¸újavaÖеÄgetter ºÍsettterÏàͬ£¬Ã»ÓÐÌØÊ⹦ÄÜÉϵÄÓô¦£¿

Õâ2¸öÎÊÌâÀ§ÈÅÎҺܳ¤Ê±¼äÁË
1. ±ÈÈ磺
Python code:
>>> a
[1, 66.6, 333, 333, 1234.5]
& ......

pythonºÍc++»ìºÏ±à³ÌµÄÒ»¸ö±È½Ï¼òµ¥µÄÎÊÌâ ´ó¼ÒÀ´¿´¿´

#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 ......

python»ù´¡ÎÊÌ⣬Çë½Ì¸ßÊÖ¡£

ÇëÎʸßÊÖ£¬ÎÒÓõÄÊÇpythonwin2.5µÄ°æ±¾£¬ÔÚ¿ª·¢µÄ¹ý³ÌÖÐÓöµ½ÁËÏÔʾÖÐÎÄÂÒÂëµÄÎÊÌâºÜÍ·ÌÛ£¬Çë¸ßÊִͽ̡£
¼òµ¥µÄ´úÂëÈçÏ£¬±£´æµÄÎļþÃûÊÇÓ¢Îĵģ¬ÎÒÊÇÓÃpythonwinн¨µÄ½Å±¾£¬±£´æµÄʱºòÑ¡ÏîÀïûÓбàÂëÑ¡ÏÔËÐкóÏÔʾÂÒÂ룺\xc0\xad\xb6\xfb\xb7\xf2    ', '\xc4\xd0         ......

Python·ÃÎÊAsp.netÍøÕ¾

ÎÒÓÃpythonµÇ½asp.netÍøÕ¾£¨×Ô¼º×öµÄ£©¡£
ʼþ²»Ö´ÐУ¬µ«ÊÇÓз´À¡¡£´ÓµÇ½ҳתµ½ÁË×¢²áÒ³¡£Ôõô»ØÊ£¿
Ï£Íû¸ßÊÖ¸ø¸ö½â´ð

¸ã¶¨ÁË
Òª·ÃÎÊasp.entµÄÍøÕ¾µÄ»°£¬Èç¹ûÍøÕ¾½ÓÊܵÄÊÇ·þÎñÆ÷¿Ø¼þµÄÖµµÄ»°£¬ÐèÒªÔÙ·ÃÎÊÖаÑĬÈÏÉú³ÉµÄÒþ²ØÓòµÄÖµÒ²Ò»Æðpost»ØÈ¥

²ÎÓëµÄÕÕÑùÓзÖ
......
×ܼǼÊý:175; ×ÜÒ³Êý:30; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [12] [13] [14] [15] 16 [17] [18] [19] [20] [21]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ