ผลต่างระหว่างรุ่นของ "การจัดหมู่"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Thanapoomo (คุย | ส่วนร่วม)
เพิ่ม code python อธิบายเพิ่ม
Taweetham (คุย | ส่วนร่วม)
 
บรรทัด 26:
</syntaxhighlight>ส่งคืนข้อมูล r length ของ elements จาก input iterable ชุดค่าผสมถูกปล่อยออกมาตามลำดับการจัดเรียง lexicographic ดังนั้นหากมีการจัดเรียงการวนซ้ำอินพุทจะมีการจัดเรียง tuples ตามลำดับที่เรียงลำดับองค์ประกอบจะถือว่าเป็นเอกลักษณ์ตามตำแหน่งไม่ใช่ค่าของพวกเขา ดังนั้นหากองค์ประกอบอินพุตเป็นค่าที่ไม่ซ้ำกันจะไม่มีค่าซ้ำในชุดค่าผสมแต่ละชุด
 
== แหล่งข้อมูลอื่น ==
== External links ==
* [https://www.mathsisfun.com/combinatorics/combinations-permutations.html Combinations and Permutations - Math is Fun]
* [https://www.calculatorsoup.com/calculators/discretemathematics/combinations.php Combinations Calculator]
 
[https://www.calculatorsoup.com/calculators/discretemathematics/combinations.php Combinations Calculator]
 
== ดูเพิ่ม ==