This website requires JavaScript.
Explore
Help
Sign In
awin
/
Obsidian-Main
Watch
1
Star
0
Fork
0
You've already forked Obsidian-Main
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
Files
189b28869c2044782636cdffb3af73bcb2d7e745
Obsidian-Main
/
04. Programming
/
Python
/
sample().md
Awin Huang
dec47dbfe3
vault backup: 2023-04-27 14:02:42
2023-04-27 14:02:42 +08:00
141 B
Raw
Blame
History
Unescape
Escape
從一個list中
,
選出n個不重複的項目
:
import
random
random
.
sample
(
seq
,
n
)
不像
choices()
是會重複的。
Reference in New Issue
View Git Blame
Copy Permalink