验证对象的类型

  1. x = 10
  2. y = 6.3
  3. z = 2j
  4.  
  5. print(type(x))
  6. print(type(y))
  7. print(type(z))