📜  python代码示例中的整数是什么

📅  最后修改于: 2022-03-11 14:45:48.572000             🧑  作者: Mango

代码示例1
# Integers are one of the basic data types in Python
# Simply, integer is a whole number denotes by - int - in Python
# Converting to an integer can be done with - int()
# You can do simple arithmetic with integers
# The default is in decimal - base 10 - but if you want you can view them in different bases
# The biggest integer you can go for is limited by the memory limit of your computer

a = 123
type(a)
#Output - 

b = "456"
c = int(b)
type(c)
#Output -