python: built-in method cont2.
时间:2008-09-29 来源:chunliny
| 20. bool( | [x]) |
New in version 2.2.1. Changed in version 2.3: If no argument is given, this function returns False.
|
>>> bool(1) |
| 21. cmp( | x, y) |
|
>>> cmp(1,1) |
| 22. complex( | [real[, imag]]) |
|
>>> complex(2,3) |
| 23. abs( | x) |
|
>>> i = complex(1,3) |
| 24. divmod( | a, b) |
Changed in version 2.3: Using divmod() with complex numbers is deprecated.
|
>>> divmod(10,3) |
| 25. eval( | expression[, globals[, locals]]) |
|
>>> i = 5 |
| 26. id( | object) |
|
>>> print fun |
|
27. len( |
s) |
|
>>> len([]) |
28.
| max( | s[, args...]) |
| min( | s[, args...]) |
|
>>> min((2,4,676,1)) |
| 29. pow( | x, y[, z]) |
|
pow(10,-1,5) |










