实例. 返回包含列表中任意两个项目的列表: import random mylist = ["apple", "banana", "cherry"] print(random.sample(mylist, k=2)).
確定! 回上一頁