python random choice from list 在 How can I randomly select an item from a list? - Stack Overflow 的評價
For cryptographically secure random choices (e.g., for generating a ... secrets import choice # Python 3 only >>> choice(list('abcde')) 'c'. ... <看更多>