vault backup: 2024-05-21 09:44:49
This commit is contained in:
5
21. 資料收集/Programming/Python/choices().md
Normal file
5
21. 資料收集/Programming/Python/choices().md
Normal file
@@ -0,0 +1,5 @@
|
||||
從list中選出n個項目,有可能重複:
|
||||
```python
|
||||
import random
|
||||
random.choices(seq, n)
|
||||
```
|
||||
Reference in New Issue
Block a user