Chinaunix首页 | 论坛 | 博客
  • 博客访问: 659157
  • 博文数量: 139
  • 博客积分: 2655
  • 博客等级: 少校
  • 技术积分: 1723
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-02 16:03
文章分类

全部博文(139)

文章存档

2013年(2)

2011年(17)

2010年(14)

2009年(86)

2008年(20)

分类: Python/Ruby

2008-11-27 21:59:24

在南京苦待一个月,最后两星期看了下python,主要是diveintopython,做下笔记,以备忘.
"Python"
Line Comment = # 
Escape Char = \
File Extensions = PY PYW
 
/Indent Strings = ":"
/Function String 1 = "%[ ,^t]++def[ ]+^([a-zA-Z0-9_]+*^):"
/Function String 2 = "%[ ,^t]++^(class[ ]+[a-zA-Z0-9_]+*^):"
/Delimiters =   []{}()<>="'.,:+

1."Reserved Words"
assert
break
continue
class
def del
elif else except exec
finally for from
global
if import in is
lambda
map
not and or
None 
pass print
try raise range return
while

2."Built-in Functions"

abs apply
callable chr cmp coerce compile complex
delattr dir divmod
eval execfile
filter float
getattr globals group
hasattr hash hex
id input int intern isinstance issubclass
joinfields
len list local long
max min match
oct open ord
pow
raw_input reduce reload repr round
search setattr setdefault slice str splitfields
unichr unicode
tuple type
vars
xrange
zip
__import__

3."__Methods__"

__abs__ __add__ __and__
__call__ __cmp__ __coerce__
__del__ __delattr__ __delitem__ __delslice__ __div__ __divmod__
__float__
__getattr__ __getitem__ __getslice__
__hash__ __hex__
__iadd__ __isub__ __imod__ __idiv__ __ipow__ __iand__ __ior__ __ixor__
__ilshift__ __irshift__
__invert__ __int__ __init__
__len__ __long__ __lshift__
__mod__ __mul__
__neg__ __nonzero__
__oct__ __or__
__pos__ __pow__
__radd__ __rdiv__ __rdivmod__ __rmod__ __rpow__ __rlshift__ __rrshift__
 
__rshift__ __rsub__ __rmul__ __repr__
__rand__ __rxor__ __ror__
__setattr__ __setitem__ __setslice__ __str__ __sub__
__xor__

4."__Attributes__"

__bases__
__class__
__dict__ __doc__
__methods__ __members__
__name__
__version__

5."Exceptions"

ArithmeticError AssertionError
EOFError Exception
FloatingPointError
IOError ImportError IndentationError IndexError
KeyboardInterrupt
LookupError
MemoryError
AttributeError
NameError
OverflowError
RuntimeError
StandardError SyntaxError SystemError SystemExit
TabError TypeError
KeyError ValueError
ZeroDivisionError

6."Operators"

+= 
-= 
%= 
/= 
**= 
&= 
|= 
^= 
>= 
<<=

7."Common Libs"

AST atexit
BaseHTTPServer Bastion
cmd codecs commands compileall copy
CGIHTTPServer Complex
dbhash dircmp dis dospath dumbdbm
emacs
find fmt fnmatch ftplib
getopt glob gopherlib grep
htmllib httplib
ihooks imghdr imputil
linecache lockfile
macpath macurl2path mailbox mailcap
mimetools mimify mutex math
Mimewriter
newdir ni nntplib ntpath nturl2path
os ospath
pdb pickle pipes poly popen2 posixfile posixpath profile pstats pyclbr
pyexpat
Para
quopri
Queue
rand random regex regsub rfc822
sched sgmllib shelve site sndhdr string sys snmp
SimpleHTTPServer StringIO SocketServer
tb tempfile toaiff token tokenize traceback tty types tzparse
Tkinter
unicodedata urllib urlparse util uu
UserDict UserList
wave webbrowser whatsound whichdb whrandom
xdrlib xml xmlpackage
zmod

8."Others"

array
fnmatch
struct self
====================================================================================
HTTP ??????
ͷ??Ϣ:
1.
阅读(1880) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~