LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 898|回复: 2

python怎么少?

[复制链接]
发表于 2005-10-17 15:06:01 | 显示全部楼层 |阅读模式
人气呢?资料呢?什么都没有啊。怎么会这样?难道这里就是perl的天下吗?
发表于 2005-10-17 15:24:32 | 显示全部楼层
楼主搞点资料来啊
回复 支持 反对

使用道具 举报

发表于 2005-10-17 19:48:36 | 显示全部楼层
python 么

www.python.org www.python.cn  就有很多东西

另外
python 自己就带了 文档的 , 不怎么再需要看其它什么

比如

  1. hua@hua:~$ ipython
  2. Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
  3. Type "copyright", "credits" or "license" for more information.

  4. IPython 0.6.15 -- An enhanced Interactive Python.
  5. ?       -> Introduction to IPython's features.
  6. %magic  -> Information about IPython's 'magic' % functions.
  7. help    -> Python's own help system.
  8. object? -> Details about 'object'. ?object also works, ?? prints more.

  9. In [1]: help str
  10. Help on class str in module __builtin__:

  11. class str(basestring)
  12. |  str(object) -> string
  13. |
  14. |  Return a nice string representation of the object.
  15. |  If the argument is a string, the return value is the same object.
  16. |
  17. |  Method resolution order:
  18. |      str
  19. |      basestring
  20. |      object
  21. |
  22. |  Methods defined here:
  23. |
  24. |  __add__(...)
  25. |      x.__add__(y) <==> x+y
  26. |
  27. |  __contains__(...)
  28. |      x.__contains__(y) <==> y in x
  29. |
  30. |  __eq__(...)
  31. |      x.__eq__(y) <==> x==y
  32. |
  33. |  __ge__(...)
  34. |      x.__ge__(y) <==> x>=y
  35. |
  36. |  __getattribute__(...)
  37. |      x.__getattribute__('name') <==> x.name
  38. |
  39. |  __getitem__(...)
  40. |      x.__getitem__(y) <==> x[y]
  41. |
  42. |  __getnewargs__(...)
  43. |
  44. |  __getslice__(...)
  45. |      x.__getslice__(i, j) <==> x[i:j]
  46. |
  47. |      Use of negative indices is not supported.
  48. |
  49. |  __gt__(...)
  50. |      x.__gt__(y) <==> x>y
  51. |
  52. |  __hash__(...)
  53. |      x.__hash__() <==> hash(x)
  54. |
  55. |  __le__(...)
  56. |      x.__le__(y) <==> x<=y
  57. |
  58. |  __len__(...)
  59. |      x.__len__() <==> len(x)
  60. |
  61. |  __lt__(...)
  62. |      x.__lt__(y) <==> x<y
  63. |
  64. |  __mod__(...)
  65. |      x.__mod__(y) <==> x%y
  66. |
  67. |  __mul__(...)
  68. |      x.__mul__(n) <==> x*n
  69. |
  70. |  __ne__(...)
  71. |      x.__ne__(y) <==> x!=y
  72. |
  73. |  __repr__(...)
  74. |      x.__repr__() <==> repr(x)
  75. |
  76. |  __rmod__(...)
  77. |      x.__rmod__(y) <==> y%x
  78. |
  79. |  __rmul__(...)
  80. |      x.__rmul__(n) <==> n*x
  81. |
  82. |  __str__(...)
  83. |      x.__str__() <==> str(x)
  84. |
  85. |  capitalize(...)
  86. |      S.capitalize() -> string
  87. |
  88. |      Return a copy of the string S with only its first character
  89. |      capitalized.
  90. |
  91. |  center(...)
  92. |      S.center(width[, fillchar]) -> string
  93. |
  94. |      Return S centered in a string of length width. Padding is
  95. |      done using the specified fill character (default is a space)
  96. |
  97. |  count(...)
  98. |      S.count(sub[, start[, end]]) -> int
  99. |
  100. |      Return the number of occurrences of substring sub in string
  101. |      S[start:end].  Optional arguments start and end are
  102. |      interpreted as in slice notation.
  103. |
  104. |  decode(...)
  105. |      S.decode([encoding[,errors]]) -> object
  106. |
  107. |      Decodes S using the codec registered for encoding. encoding defaults
  108. |      to the default encoding. errors may be given to set a different error
  109. |      handling scheme. Default is 'strict' meaning that encoding errors raise
  110. |      a UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
  111. |      as well as any other name registerd with codecs.register_error that is
  112. |      able to handle UnicodeDecodeErrors.
  113. |
  114. |  encode(...)
  115. |      S.encode([encoding[,errors]]) -> object
  116. |
  117. |      Encodes S using the codec registered for encoding. encoding defaults
  118. |      to the default encoding. errors may be given to set a different error
  119. |      handling scheme. Default is 'strict' meaning that encoding errors raise
  120. |      a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
  121. |      'xmlcharrefreplace' as well as any other name registered with
  122. |      codecs.register_error that is able to handle UnicodeEncodeErrors.
  123. |
  124. |  endswith(...)
  125. |      S.endswith(suffix[, start[, end]]) -> bool
  126. |
  127. |      Return True if S ends with the specified suffix, False otherwise.
  128. |      With optional start, test S beginning at that position.
  129. |      With optional end, stop comparing S at that position.
  130. |
  131. |  expandtabs(...)
  132. |      S.expandtabs([tabsize]) -> string
  133. |
  134. |      Return a copy of S where all tab characters are expanded using spaces.
  135. |      If tabsize is not given, a tab size of 8 characters is assumed.
  136. |
  137. |  find(...)
  138. |      S.find(sub [,start [,end]]) -> int
  139. |
  140. |      Return the lowest index in S where substring sub is found,
  141. |      such that sub is contained within s[start,end].  Optional
  142. |      arguments start and end are interpreted as in slice notation.
  143. |
  144. |      Return -1 on failure.
  145. |
  146. |  index(...)
  147. |      S.index(sub [,start [,end]]) -> int
  148. |
  149. |      Like S.find() but raise ValueError when the substring is not found.
  150. |
  151. |  isalnum(...)
  152. |      S.isalnum() -> bool
  153. |
  154. |      Return True if all characters in S are alphanumeric
  155. |      and there is at least one character in S, False otherwise.
  156. |
  157. |  isalpha(...)
  158. |      S.isalpha() -> bool
  159. |
  160. |      Return True if all characters in S are alphabetic
  161. |      and there is at least one character in S, False otherwise.
  162. |
  163. |  isdigit(...)
  164. |      S.isdigit() -> bool
  165. |
  166. |      Return True if all characters in S are digits
  167. |      and there is at least one character in S, False otherwise.
  168. |
  169. |  islower(...)
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表