*import* random print(random.sample('abcdef',3)). random.shuffle() : 打亂元素順序: import random x=["a","b","c"] random.shuffle(x) print(x).
確定! 回上一頁