1. 程式人生 > >python的基本資料型別及函式(Python3)

python的基本資料型別及函式(Python3)

Python中的標準資料型別及相關用法(python3)


Python3 中有六個標準的資料型別:

  • Number(數字)
  • String(字串)
  • List(列表)
  • Tuple(元組)
  • Set(集合)
  • Dictionary(字典)

按照資料型別是否可變進行分類:

  • 不可變資料(3 個):Number(數字)、String(字串)、Tuple(元組)
  • 可變資料(3 個):List(列表)、Dictionary(字典)、Set(集合)

具體資訊可參考python中文手冊:http://www.runoob.com/manual/pythontutorial3/docs/html/


菜鳥教程:http://www.runoob.com/python3/python3-tutorial.html