Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ºÍPHPÖ®±È½Ï

  ż¶û×ö¸ö¼òµ¥µÄWEB·þÎñ²âÊÔ³ÌÐò£¬ÎÒ»¹ÊÇϲ»¶²ÉÓÃPHP¡£¼ò½à£¬·ç¸ñºÍC/C++½Ó½ü£¬ÉÏÊֿ죬¶øÇÒ¿âÒ²ºÜÆëÈ«¡£ÒÔǰΪ¹ã¶«Òƶ¯×öÒƶ¯ÐÐÒµÖն˵ÄÑÝʾ³ÌÐòʱ£¬²ÉÓùúÄÚÒ»¸öÐÖµÜдµÄFleaPHP¿ªÔ´¿ò¼Ü£¬Á½Öܲ»µ½µÄʱ¼ä£¬ÎÒ´ÓÒ»¸ö¶ÔPHPÒ»ÎÞËùÖªµÄˮƽ£¬¿ìËٵĸ㶨ÁË30¶à¸öÒ³ÃæµÄºǫ́£¬ºóÀ´ÑÝʾЧ¹ûÒ²²»´í£¬Ò²ºÜÎȶ¨£¬´Ó´Ë¶ÔPHPÓÐÁ˺ÜÉîµÄ¸ÐÇé¡£ËäÈ»×î½üÓõıȽ϶àµÄÊÇPython,µ«×ܸоõPythonÔÚWeb·½Ã滹ÊDz»ÈçPHPÄÇô¿ì½ÝÓë·½±ã£¬PHPËƺõÌìÉú¾ÍÊÇΪWEBËù×÷¡£µ«ÊÇҪдһЩÆäËûµÄC/SÐÎʽµÄ²âÊÔ³ÌÐò£¬python»¹ÊÇÏԵøüʤһ³ï£¬ËäÈ»pythonÏÖÔÚÒ²ÌṩÁ˺ܶàµÄWEB¿ò¼Ü£¬µ«Ëƺõ×ÜûÓж¯Á¦È¥ÉÁË£¬Ò²ÐíÕâ¾ÍÊÇÈ˵ĶèÐÔ°É£¡
   ´ÓÎÒ×Ô¼ºÊ¹ÓÃÁ½Öֽű¾µÄ¾­ÑéÀ´¿´£¬PythonºÍPHPÁ½Öֽű¾ÒªÍ¬Ê±ÊÊÓ¦ÏÂÀ´£¬»¹È·ÊµÓÐһЩÀ§ÄÑ£¬¶þÕߵĴúÂë·ç¸ñ²îÒìȷʵ̫´óÁËÒ»µãµã£¬³£³£Ð´´úÂëʱ»ìÏýÆðÀ´£¬¼ÓÉÏÏÖÔڵļÇÒäÁ¦ÊµÔÚÊÇË¥Í˵ÄÀ÷º¦£¬ÓÐʱ³ÉÁËÒ»¸öÀ§ÈÅ¡£
  GoogleÓ¦¸ÃËãÊÇpythonµÄ×î´óÍƳçÕߺÍʹÓÃÕßÁË£¬google app engine, chromeÖÐÎÞ´¦²»ÊÇpythonµÄÉíÓ°£¬ÀïÃæµÄһЩ´úÂë¿´ÆðÀ´£¬È·ÊµÈÃÈËÉÍÐÄÔÃÄ¿£¬ÓïÑԵļò½à£¬¿É¶ÁÐÔʵÔÚÊÇÌåÏÖµ½Á˼«Ö£¬¶ÁµÄʱºò¾­³£ÔÚÏ룬ҪÊÇÓÃC++À´ÊµÏÖÒ»±é£¬ÐèÒª¶à´ ......

PythonºÍPHPÖ®±È½Ï

  ż¶û×ö¸ö¼òµ¥µÄWEB·þÎñ²âÊÔ³ÌÐò£¬ÎÒ»¹ÊÇϲ»¶²ÉÓÃPHP¡£¼ò½à£¬·ç¸ñºÍC/C++½Ó½ü£¬ÉÏÊֿ죬¶øÇÒ¿âÒ²ºÜÆëÈ«¡£ÒÔǰΪ¹ã¶«Òƶ¯×öÒƶ¯ÐÐÒµÖն˵ÄÑÝʾ³ÌÐòʱ£¬²ÉÓùúÄÚÒ»¸öÐÖµÜдµÄFleaPHP¿ªÔ´¿ò¼Ü£¬Á½Öܲ»µ½µÄʱ¼ä£¬ÎÒ´ÓÒ»¸ö¶ÔPHPÒ»ÎÞËùÖªµÄˮƽ£¬¿ìËٵĸ㶨ÁË30¶à¸öÒ³ÃæµÄºǫ́£¬ºóÀ´ÑÝʾЧ¹ûÒ²²»´í£¬Ò²ºÜÎȶ¨£¬´Ó´Ë¶ÔPHPÓÐÁ˺ÜÉîµÄ¸ÐÇé¡£ËäÈ»×î½üÓõıȽ϶àµÄÊÇPython,µ«×ܸоõPythonÔÚWeb·½Ã滹ÊDz»ÈçPHPÄÇô¿ì½ÝÓë·½±ã£¬PHPËƺõÌìÉú¾ÍÊÇΪWEBËù×÷¡£µ«ÊÇҪдһЩÆäËûµÄC/SÐÎʽµÄ²âÊÔ³ÌÐò£¬python»¹ÊÇÏԵøüʤһ³ï£¬ËäÈ»pythonÏÖÔÚÒ²ÌṩÁ˺ܶàµÄWEB¿ò¼Ü£¬µ«Ëƺõ×ÜûÓж¯Á¦È¥ÉÁË£¬Ò²ÐíÕâ¾ÍÊÇÈ˵ĶèÐÔ°É£¡
   ´ÓÎÒ×Ô¼ºÊ¹ÓÃÁ½Öֽű¾µÄ¾­ÑéÀ´¿´£¬PythonºÍPHPÁ½Öֽű¾ÒªÍ¬Ê±ÊÊÓ¦ÏÂÀ´£¬»¹È·ÊµÓÐһЩÀ§ÄÑ£¬¶þÕߵĴúÂë·ç¸ñ²îÒìȷʵ̫´óÁËÒ»µãµã£¬³£³£Ð´´úÂëʱ»ìÏýÆðÀ´£¬¼ÓÉÏÏÖÔڵļÇÒäÁ¦ÊµÔÚÊÇË¥Í˵ÄÀ÷º¦£¬ÓÐʱ³ÉÁËÒ»¸öÀ§ÈÅ¡£
  GoogleÓ¦¸ÃËãÊÇpythonµÄ×î´óÍƳçÕߺÍʹÓÃÕßÁË£¬google app engine, chromeÖÐÎÞ´¦²»ÊÇpythonµÄÉíÓ°£¬ÀïÃæµÄһЩ´úÂë¿´ÆðÀ´£¬È·ÊµÈÃÈËÉÍÐÄÔÃÄ¿£¬ÓïÑԵļò½à£¬¿É¶ÁÐÔʵÔÚÊÇÌåÏÖµ½Á˼«Ö£¬¶ÁµÄʱºò¾­³£ÔÚÏ룬ҪÊÇÓÃC++À´ÊµÏÖÒ»±é£¬ÐèÒª¶à´ ......

python±È½Ï²Ù×÷µÄÄÚÄ»

½ñÌì¿´ÁËÐòÁÐÀàÐÍÏà¹ØµÄ±È½Ï²Ù×÷.
ÔÚpythonºËÐıà³Ì(2nd)Ò»ÊéÖÐ6.13.1Õ½ÚÖÐ, ¸ø³öÁËÁбí±È½ÏµÄÒ»¸ö×¼Ôò..
¸öÈ˸оõ»¹ÊDz»ºÜÍêÉÆ:
Èç¹ûɨÃèµ½Á½¸öÁбíÖе±Ç°±È½ÏÔªËØÊDz»¿É±È½ÏµÄ, ÄÇô·µ»Øʲô??
ÎÒÓõÄÊÇpython2.6....
¶ÔÕâ¸öÎÊÌâ×öÁËһЩ²âÊÔ, ×Ô¼ºÄ¿Ç°¸Â¾øµ±±È½ÏÓöµ½ÉÏÊöÇé¿öʱ, ÊÇʹÓÃÁ½¸öÁбíµÄÄÚ´æµØÖ·ÖµÀ´±È½ÏµÄ..
ÒÔÏ´úÂëÊDzâÊÔʱºòµÄi/o
>>> a = [1, 2, 3, 4]
>>> b = [1, 2, 4, "3"]
>>> a == b
False
>>> a < b
True
>>> a > b
False
>>> a, b = b, a
>>> a
[1, 2, 4, '3']
>>> b
[1, 2, 3, 4]
>>> id(a)
12643064
>>> id(b)
12752576
>>> a < b
False
>>> b < a
True
>>> a = [1, "4"]
>>> b = [2]
>>> a < b
True
>>> id(a)
12642104
>>> id(b)
12643064
>>> c = [0]
>>> a < c
False
>>> id(c)
12752576
>>> a = [1]
>>> b = ["1"]
>>> a < b
True
>>> id ......

Python ¶þ½øÖÆÎļþ¶ÁÈ¡ÏÔʾ

filename=raw_input('enter file name:')
f=open(filename,'rb')
f.seek(0,0)
index=0
for i in range(0,16):
print "%3s" % hex(i) ,
print
for i in range(0,16):
print "%-3s" % "#" ,
print
while True:
temp=f.read(1)
if len(temp) == 0:
break
else:
print "%3s" % temp.encode('hex'),
index=index+1
if index == 16:
index=0
print
f.close()
ÕâÀïÏÔʾµÄÊÇ£¬¶ÁÈ¡Ò»¸öBMPͼÏñºóµÄЧ¹û
 
´ÓÕâÀ¿ÉÒÔ¿´³ö£¬printÓï¾äºÍCµÄprintf¶Ô¸ñʽҪÇóÊÇÒ»Öµģ¬»òÕß˵£¬Python²ÉÓÃÁËCµÄ¸ñʽ¹æ·¶¡£
 
print "%-3s" % "#" ,
¶ººÅ·ÀÖ¹×Ô¶¯Éú³É»»Ðзû£¬-3±íʾÏÔʾռ3¸ö×Ö·û²¢ÇÒ´Ó×óÏÔʾ£¨Ä¬ÈÏ´ÓÓÒ£©¡£
 
f.read(1)
ÿ´Î¶ÁÒ»¸ö×Ö½Ú¡£Èç¹û¶Á³öÀ´µÄ³¤¶ÈΪ0£¬Ôòµ½ÁËÎļþĩβ¡£
 
PythonÓï·¨ÓкܶàÌØÊâµÄµØ·½£¬ÒÔºó»¹ÒªÂýÂýѧϰ ......

Python Socket Server

½ñÌì×öftpµÄ½çÃæ,×öµÄÏ൱ÓôÃÆ£¬ÅªµÃÐÄÇé¼°Æ䲻ˬ£¬ÔÚÍøÉÏËѵ½ËÀ¶¼²»ÖªµÀ¸ÃÔõô°ì£¬´òËãÃ÷ÌìÏÈ¿´¿´C£«£«
µÄÊÇÔõôŪµÄÔÙ˵¡£²»¹ý£¬ÏÖÔÚÎÒÏëдһϹØÓÚsocketµÄ±à³Ì¡£
ÏÈдһ¸öʱ¼ä·þÎñÆ÷°É£¬Ëû¼àÌý¶Ë¿Ú£¬²¢Çһ᷵»Ø ·þÎñÆ÷µÄʱ¼ä
server.py
#!/usr/bin/python
# Copyright (c) angelipin (angelipin@126.com)
import SocketServer
import time
import logging
__version__ = "1.0.0"
class ServerHandler(SocketServer.BaseRequestHandler):
def setup(self):
logging.info("start thread.")
self.request.settimeout(60)
def finish(self):
self.request.close()
logging.info("end thread.")
def handle(self):
while 1:
try:
dataReceived = self.request.recv(1024)
if not dataReceived:
break
logging.info('Receive data '+dataReceived)
dataSend = time.ctime(time.time())
self.request.send(dataSend)
except socket.timeout:
print "Time out"
logging.error("Time out")
logging.basicConfig(level=logging.DEBUG,format= ......

python±Ê¼ÇÖ®ÕýÔò±í´ïʽ

 ÕýÔò±í´ïʽ
¾ßÌåµÄ²Î¿¼ÊֲᣬÕâÀï¼ÇÏÂһЩСÎÊÌ⣺
1¡¢re¶ÔÏóµÄ·½·¨
match    Match a regular expression pattern to the beginning of a string.
search   re.search(pattern, string, flags) flags:re.I re.M re.X re.S re.L re.U
sub      Substitute occurrences of a pattern found in a string.
subn     Same as sub, but also return the number of substitutions made.
split    Split a string by the occurrences of a pattern.
findall  Find all occurrences of a pattern in a string.
finditer Return an iterator yielding a match object for each match.
iter = re.finditer("23", "123423523")
for i in iter:
print i.span() 
compile  ½«Ò»¸öpattern±àÒë³ÉÒ»¸öRegexObject.
       re¶ÔÏóµÄʹÓ÷½·¨£¬reobject = re.complie(pattern)£¬´Óreobject»ñµÃpatternµÄ·½·¨£¬Ê¹ÓÃreobject.patternÊôÐÔ
       Èç¹ûÒ»¸öreobjectÒª¶à´ÎʹÓã¬×îºÃʹÓÃc ......

Best Replica Gucci Galaxy Python Hobo Bag

ZoundryDocument
Python skin is known for its color variations and for its elasticity; it is
the warmest leather of the season and ideal for the manufacture of many luxury
goods. Sometimes natural patterns can be hidden when they're done in black, but
the finish here has a bit of a shine to it, so it reflects enough light that the
scale differentiation is easy to see. Many famous brands have their python
handbags. In my opinion, Gucci Handbags do best.
Gucci Galaxy Large Hobo has a luxe quality with modern design that will be
timeless and glamorous for every season. Made of python skin with patent leather
trims it will make you feel more feminine. The divine and pristine python skin
is crafted into a classic shape with small chain that hangs on the bottom, which
gives a refined style and cutting-edge chic. The single handle is braided
leather interlocked within the chain. It also has zip top closure and spacious
interior. With cotton lining, the inside offers cel ......
×ܼǼÊý:695; ×ÜÒ³Êý:116; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [98] [99] [100] [101] 102 [103] [104] [105] [106] [107]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ