Python笔记
🗒️数据类型
00 分钟
2023-8-22
2023-12-30
type
status
date
slug
summary
tags
category
icon
学习进度

type函数语句

  1. 语法:type(被查看类型的数据)
  1. 我们可以通过type()这个格式来得到数据的类型。
  1. 在变量中也能够存储类型的信息(储存type()语句的执行结果)。
  1. 注意:变量没有类型,但它储存的数据有类型。举例:字符串变量这句话的意思是,变量里面储存的数据类型是字符串。
notion image