首页 > 技术文章 > python 基本数据类型

penphy 2018-05-29 21:00 原文

 

基本数据类型:

 

数字:   int   所有的功能,都放在int里

     a1 = 123

    a2 = 456

 

字符串:  str

    s1 =  "sadsadasd"

    s2 = "sadasdeqwe"

 

列表:  list

    ....

元祖:  tuple

    ....

字典:  dict

    ....

 

布尔值:  bool

    ....

推荐阅读