📌  相关文章
📜  从列表 python 代码示例中打印一个随机单词

📅  最后修改于: 2022-03-11 14:46:44.186000             🧑  作者: Mango

代码示例1
import random

words = ['tree','sun','ball','moon','earth','grass','world'] 

word = random.choice(words)
print(word)