Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Four basic data types of python
Four basic data types of python
Python is a fairly advanced language with many basic data types, but if you mean other languages, you must have four words:

1, plastic int

Definition: age =10 # age = int (10)

Used for identification: age, grade, ID number, qq number, number.

2. Floating point floating point number

Definition: salary = 3. 1 # salary = floating (3. 1)

Used to identify: salary, height and weight.

3. Character channeling

# In python, quoted characters are string types, and python has no character types.

Definition: name='egon' #name=str('egon')

Used for identification: descriptive content, such as name, gender, nationality and race.

4. Boolean Boolean