Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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½Å±¾ÔËÐÐ×ÜÊÇËøËÀµÄÎÊÌ⣬Çë´ó´óÖ¸½Ì£¡

Traceback (most recent call last):
  File "C:\test.py", line 80, in <module>
  cur.execute("update userdata set kb=0 where strAccountID='%s'" % name)
  File "C:\Python25\Lib\site-packages\pymssql.py", line 196, in execute
  raise Op ......

python²é¿´class²ÎÊý

Àà:
class Test:
  def __init__(self,num1,num2):
  print num1,num2
ÓÃʲôº¯ÊýÄܲ鿴 TestÀàÓÐÁ½¸ö²ÎÊý
ÄܲéÂð Ë­ÖªµÀ
ÓÃdir ºÍinfoÖÇÄܲ鿴ÊôÐԺͷ½·¨

лл.................
......

Python urllib ÈçºÎÌí¼Ó½ø¶ÈÏÔʾ

code:
remote = urllib.urlopen(remote_file)
local_file = open(local_path_name, "wb")
local_file.write(remote.read())
ÎÊÌâ:
ÓÃÕâÖÖ·½Ê½¿ÉÒԺܺõÄÏÂÔØÔ¶³ÌÎļþ, ÏÖÔÚÐèÒª¼ÓÈëÒ»¸ö½ø¶ÈÏÔʾµÄ¹¦ÄÜ, ÀàËÆÓÚÏÂÔØÈí¼þÒ»Ñù, ÏÔʾ³öÏÂÔصİٷֱÈ, ÇëÎÊÔõô×ö?
¿ÖŲ»ÐÐ!Äã¿ÉÒÔ²éÒ»ÏÂurllibÏà¹ØÎĵµ,Èç¹ûÓÐÓë ......

pythonÖеÄÀàÖÐÊôÐÔÔªËؼÓself.ºÍ²»¼Óself.µÄÇø±ð

ѧϰPyQt£¬·¢ÏÖÆäÖÐÒ»¶Î½Å±¾ÊÇÕâÑùµÄ£º
class Form(QDialog):
  ........
  amountLabel = QLabel("Amount")
  self.amountLabel = QLabel()
  ........
pythonÖеÄÀàÖÐÊôÐÔÔªËؼÓself.ºÍ²»¼Óself.µÄÇø±ðÊÇʲô£¿ÕâÁ½¸ö±äÁ¿¶¼ÔÚÀඨÒåÖС£
Ò»ÑùµÄ,Èç¹ûÄã²»¼Ó,½âÊÍÆ÷Ò²»á°ïÄã¼ ......

ÇóÒ»¸öpython¿ªÔ´³ÌÐò

Ë­ÓÐpython django ¿ª·¢µÄ³ÌÐò »òÕßÖªµÀÄÄÓÐ
¸æËßÏ ÎÒÒªÒ»¸ö¿ªÔ´µÄ³ÌÐòѧϰÓà ¸Ð¾õ×Ô¼º±à³ÌºÜ²»¹æ·¶

µã»÷²é¿´¡¶Django Web ¿ª·¢Ö¸ÄÏ¡·

http://www.ibm.com/developerworks/cn/linux/l-django/

Äã˵µÄÊÇdjango bookÄDZ¾Êé°É ÄDZ¾ÎÒ¿´ÁË ºìÉ«µÄ

ÒýÓÃ
Äã˵µÄÊÇdjango bookÄDZ¾Êé°É ÄDZ¾ÎÒ¿´ÁË ºìÉ«µÄ
¶Ô£¬¾ÍÊÇ ......

pythonÏ߳̽»Á÷ - °¤ÌßÖ°ÑÄ / ²ÅÈëÖ°³¡

תÌû£º
import sys
from wxPython.wx import *
from wxPython.lib import newevent
DispatchEvent, EVT_DISPATCH = newevent.NewEvent()
class GenericDispatchMixin:
  def __init__(self):
  EVT_DISPATCH(self, self.OnDispatchEvent)
  def OnDispatchEvent(self, event):
  ......
×ܼǼÊý:175; ×ÜÒ³Êý:30; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³[2] [3] [4] [5] [6] [7] [8] [9] [10]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ