数据类型


type()------查看数据类型
基本类型:数字、字符串、布尔
    数字
    1、32位机器上32位-2147483648~2647483647,2^31~2^31-1
    2、64位机器上64位[ -9223372036854775808,9223372036854775807][-2^63,2^63-1]
    3、python3中没有long,是int
    字符串
    name*10-----------十次
    字符串不能和数字拼接,不能跨数据类型
    
    格式化字符串--------%s 占位符(s字符,d数字,f浮点)   %(name)拼接符
    int(input("age:"))
    
数据集:列表、元组、字典、集合

原文地址:https://www.cnblogs.com/fmgao-technology/p/9030955.html