python基礎2--數字類型和字符串

python基礎2 數據類型 python中的數據類型包括數字類型、字符串類型、列表(list)、元組(tuple)、字典(dict)、集合(set)、其餘(布爾型),在python中可使用 type()函數來查看數據的類型python >>> s = "hello world" >>> num = 666 >>> type(s) <class 'str'> >>> type(num) <clas
相關文章
相關標籤/搜索