Python 之排列组合. #1,排列. 比如随机抛两个或三个骰子,列出所有的可能: import itertools a = range(7)[1:] print list(itertools.product(a)) ...
確定! 回上一頁