The basic data types of the integer, floating point

1. whole type int

Uses: age, rank, number 

# define ways: 

Age = 10    # Age = int (10)

2. float float

Uses: height, weight, pay 

defined method: 
height = 1.81    # height = a float (1.81)

 

Uses: age, rank, number
#define manner:
Age = 10 #age = int (10)

Guess you like

Origin www.cnblogs.com/baohanblog/p/11807384.html