Python standard library: built-in functions callable (object), pythoncallable
If the object parameter is an object that can be called, True is returned; otherwise, False is returned. However, it should be noted that when an object can be called, it does not mean that the execution will be successful when the object is called, but it will not be successful when the object cannot be called. If a class object is a class object, whether or not this class is reloaded is determined by the _ call _ () method. If this method is reloaded, the value is True.
Example:
# Callable () function a = 'abc' def f (a): pass print (callable (a), callable (f ))
The output result is as follows:
False True
Cai junsheng QQ: 9073204 Shenzhen
Python built-in functions
I am also learning python. How can I discuss it together?
If python has built-in functions, is there external functions?
Python built-in function built-in function refers to the built-in function in the standard library. These functions do not belong to any class or module and can be called directly. They can be considered an integral part of the python language. Similar to keywords.
Abs ()
Dict ()
Help ()
Min ()
Setattr ()
All ()
Dir ()
Hex ()
Next ()
Slice ()
Any ()
Divmod ()
Id ()
Object ()
Sorted ()
Ascii ()
Enumerate ()
Input ()
Oct ()
Staticmethod ()
Bin ()
Eval ()
Int ()
Open ()
Str ()
Bool ()
Exec ()
Isinstance ()
Ord ()
Sum ()
Bytearray ()
Filter ()
Issubclass ()
Pow ()
Super ()
Bytes ()
Float ()
Iter ()
Print ()
Tuple ()
Callable ()
Format ()
Len ()
Property ()
Type ()
Chr ()
Frozenset ()
List ()
Range ()
Vars ()
Classmethod ()
Getattr ()
Locals ()
Repr ()
Zip ()
Compile ()
Globals ()
Map ()
Reversed ()
_ Import __()
Complex ()
Hasattr ()
Max ()
Round ()
Delattr ()
Hash ()
Memoryview ()
Set ()
Static methods in other modules in the standard library are not built-in functions.
User-Defined extended functions are not built-in.
==================
However, in other languages and environments, built-in functions have different meanings.
Built-in functions do not have a unique specificity in concept. They are compound words. It is best to understand them as "built-in functions"... the rest of the text>