आप बिल्टिन फ़ंक्शंस के साथ-साथ इसके कोड के बारे में सहायता प्राप्त करने के लिए बस help()
कमांड का उपयोग कर सकते हैं।
उदाहरण के लिए
: अगर आप str() के लिए कोड देखना चाहते हैं, बस टाइप - help(str)
इसे इस तरह वापस आ जाएगी,
>>> help(str)
Help on class str in module __builtin__:
class str(basestring)
| str(object='') -> string
|
| Return a nice string representation of the object.
| If the argument is a string, the return value is the same object.
|
| Method resolution order:
| str
| basestring
| object
|
| Methods defined here:
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __contains__(...)
| x.__contains__(y) <==> y in x
|
| __eq__(...)
| x.__eq__(y) <==> x==y
|
| __format__(...)
| S.__format__(format_spec) -> string
|
| Return a formatted version of S as described by format_spec.
|
| __ge__(...)
| x.__ge__(y) <==> x>=y
|
| __getattribute__(...)
-- More --
स्रोत
2016-12-09 14:09:12
क्या आप 'एन्युमरेट' के साथ एक उदाहरण दे सकते हैं? – Benjamin
आप जिस तरह से अंतर्निहित अंतर्निहित परीक्षण किया जा सकता है [यहां] (http://hg.python.org/cpython/file/b36cb4602e21/Lib/test/test_enumerate.py)। – Makoto
एन्युमरेट कोड [यहां] है (http://svn.python.org/view/python/trunk/Objects/enumobject.c?view=markup) –