python--元組tuple

**************    元組tuple    *************** 元組的定義  - 定義空元組   tuple = () - 定義單個值的元組  tuple = (fentiao,) - 一般的元組(元素有列表,元組,字符) tuple = (fentiao, 8, male)   >>> t = (1,2,(1,2),[1,2])   >>> type(t)  <type
相關文章
相關標籤/搜索