S
S
Slavka2013-12-10 20:44:40
Python
Slavka, 2013-12-10 20:44:40

Are there lists of basic functions in Python?

In general, there is literature, a reference book, maybe someone will share the lists of basic functions in python. For example, a string is a list of its functions, collections are a list of functions, etc.
It’s just that I’m still a beginner and I’m tired of constantly surfing the Internet, I would print it out and keep it at hand

Answer the question

In order to leave comments, you need to log in

6 answer(s)
K
Konstantin, 2013-12-10
@Slavka_online

I think this will do: Python. Comprehensive Reference 4th Edition [David M. Beasley]

T
tsarevfs, 2013-12-10
@tsarevfs

Python has the wonderful help and dir functions that give you help from the console. And a lot of printed cheat sheets can be found by the word cheatsheet.

A
Andrey Belov, 2013-12-10
@Andrey_Belov

help(str)
help(list)
help(dict)
etc.

C
ckald, 2013-12-10
@ckald

➜  ~  python
Python 2.7.5 (default, Aug 27 2013, 01:39:47)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> dir(__builtins__)
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BufferError', 'BytesWarning', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'None', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'ZeroDivisionError', '__debug__', '__doc__', '__import__', '__name__', '__package__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin', 'bool', 'buffer', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', 'exit', 'file', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'intern', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'long', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode', 'vars', 'xrange', 'zip']
>>>

I also recommend this article, which gets to the heart of the matter and most likely explains why you don't need to be interested in the list of standard functions in Python python-history.blogspot.nl/2013/11/story-of-none-t...

M
Monnoroch, 2013-12-10
@Monnoroch

There is docs.python.org/2.7/library/index.html , apparently what you need is to dump all the points from this page, only this will turn out to be such a sickly Talmud, and search on the site (or even in Google) will be faster.

K
KlonKaktusa, 2013-12-11
@KlonKaktusa

python cheat sheet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question