总是显示列表不是整数形式,无法输出,求专家解答如何用随机函数解决该问题
没啥问题呀
import random m = ['one','two','three','four','five'] for i in range(3): print(random.sample(m,2))