Python types, variables, and data storage

1. Python variables do not need to define in advance the type of , and passed his variable types and values related to the name is irrelevant, it is typical of the type of dynamic storage

1 #!/usr/bin/env python 
2 # -*- coding:utf-8 -*-
3 name = 'Tom'
4 print(type(name))

 

 

2. Assignment and smaller data references? ?

 

Guess you like

Origin www.cnblogs.com/GooKiki/p/11481524.html