Python: isinstance() function

 Python Booleans (w3schools.com)

Python also has many built-in functions that return a boolean value, like the isinstance() function, which can be used to determine if an object is of a certain data type:

Example

Check if an object is an integer or not:

x = 200
print(isinstance(x, int))

Không có nhận xét nào:

Add script to wordpress

 trong file /opt/bitnami/wordpress/wp-content/themes/astra-child/functions.php