一、input方法:python提供的输入方法(能够在控制台输入内容) 通过input输入的结果,返回出来一律为字符串类型(文本) peopleInput = input('这是我添加的提示信息,请输入内容:') print(peopleInput, type(peopleInput)) 1. 2. 输入: 这是内容 1. 输出: 这是内容 <class 'str'> 1. 二、print方法:python提供...
typeof 返回的值都是字符串类型 typeof 操作可以判断基本类型的数据,但是也存在一些特例,比如 typeof null 返回的是“object” ,因为 从逻辑上,null 这个特殊值被认为是一个对空对象的引用,表示一个空对象指针,实际上是基础类型 typeof 5 // "number" typeof true // "boolean" typeof 'text' // "strin...
类型类型类型 的