Python 教學 9 – Python Mapping Type: dict
dict 是 Python 中的 mapping type,類似 js 中的 object,每一個 element …
dict 是 Python 中的 mapping type,類似 js 中的 object,每一個 element …
Python set 和 frozenset 常用來表示一群不重複 element 的集合,這篇文章就來介紹一下 Python set 和 …
Python 有兩個較常用的 sequence type:list 和 tuple,有些文章雖然也會把 string 列為 sequence type,不過嚴格來說,string …
Python 教學 7 – Python Sequence Type: List, Tuple 介紹 Read More »
Python generator object 其實是 iterator 的一種,所以一樣有 iterator 的特性: 只能 iterate …