jupyter如何查看数据类型

  • jupyter如何查看数据类型

    在jupyter notebook中,可以使用type()函数来查看变量的数据类型。例如:x = 5print(type(x)) # 输出:y = “hello”print(type(y)) # 输出:z = [1, 2, 3]print(type(z)) # 输出:<class '

    2024-05-23
    0