# 方式1: 使用print直接输出类型信息 print(type("程序员")) int_type = type(666) print(int_type) print(type(11.345)) # 方式2: 使用变量存储type()语句的结果 string_type = type("程序员") int_type = int_type float_type = type(11.345) print(string_type) print(int_type) print(float_type) # 方式3: 使用type()语句,查看变量中存储的数据类型信息 name = "程序员" name_type = type(name) print(name_type)