All is well 3 idiots

AC小小常

【Python基础知识】(2)type函数

type函数

  1. 用于获取变量的数据类型

  2. 语法:变量 = type(变量名)

  3. 输出:
      <class 'bool'>
      <class 'str'>
      <class 'float'>
      <class 'int'>

posted on 2020-03-31 11:39  AC小小常  阅读(523)  评论(0编辑  收藏  举报

导航