Shuffle a Python list · 1. Using random.shuffle. The standard solution to shuffle a list in Python is to use the shuffle() function from the random module. · 2.
確定! 回上一頁