作者查詢 / bigpigbigpig
作者 bigpigbigpig 在 PTT [ Python ] 看板的留言(推文), 共110則
限定看板:Python
看板排序:
9F→: 善用slice,一行就搞定。此外,會收到 Null,因為07/29 06:35
10F→: detector() 函式中沒有 return。07/29 06:36
19F→: 可以用 itertools 模組中的 product (直積)。07/21 06:34
12F→: itertools 模組裡的函數都會用嗎?應數系練功好機會07/20 18:53
5F→: 精通Python原文是Introducing Python,初學值得一看01/27 23:09
4F→: 第一本對dict和set只有概略描述(避開hash計算細節),01/23 14:45
5F→: 不知是否合乎你的需求。01/23 14:46
4F→: 既然用 Python,當然是用 in,不然就不 Pythonic :)12/27 09:42
5F→: if A in A1:12/27 09:42
6F→: Do something12/27 09:43
22F→: https://ideone.com/hz9s3x11/11 07:13
8F→: https://ideone.com/zviEkm10/31 21:53
2F→: 內建:沒有。先想想m個0和(n-1)個1有幾種不同的排列08/21 08:44
3F→: 更正:n個0和(m-1)個108/21 08:45
4F→: 方向正確,m,n不大的話,可用set來篩選不重複的排列08/21 11:16
5F→: 有效率的解決方法看下面這篇:08/21 11:32
6F→: http://marknelson.us/2002/03/01/next-permutation08/21 11:32
2F→: 這本超棒,趕快閱讀,我自己正在讀原文版 :)07/06 17:00