透過python內建模組,可以用很短的程式碼來實現排列組合而不必自己實作首先看程式碼例子: ... for p in permutations(range(1,10),6): if check(p): print(p).
確定! 回上一頁