xx = [example[x] for example in xxx]功能解析

       在學習《Machine Learning in Action》書中的第三章決策樹,遇到了featList = [example[i] for example in dataSet]這樣一條語句,看半天看不懂,於是直接在python中使用一下,話不所說,直接上圖。
相關文章
相關標籤/搜索