#28748: Python 解答


oxxostudio (oxxo.studio)


因為要算出密碼的所有排列組合,
所以可以使用 Python 標準函式庫 itertools 裡的 permutations 來實作,
先將指定範圍的數字改成文字串列,再透過 permutations 算出所有排列組合,
最後將這些組合列出即可。

解答:https://steam.oxxostudio.tw/category/python/zerojudge/a524.html