擅长:python、mysql、java
<p>可以使用<a href="https://docs.python.org/2/library/os.html#os.listdir" rel="nofollow noreferrer">os.listdir</a>获取目录中所有项的路径列表。然后使用<a href="https://docs.python.org/3/library/random.html" rel="nofollow noreferrer">random class</a>从该列表中选择项目</p>