[Python] python一句代码实现全排列 →→→→→进入此内容的聊天室

来自 , 2020-03-29, 写在 Python, 查看 136 次.
URL http://www.code666.cn/view/f84c0fd2
  1. from itertools import permutations
  2. #from http://www.sharejs.com
  3. print(list(permutations([1, 2, 3])))
  4.  
  5.  

回复 "python一句代码实现全排列"

这儿你可以回复上面这条便签

captcha