'''
#=============================================================================
#文件名:rand.py
# Desc:隨機顯示四個單詞中的壹個
#作者:寒夜
#郵箱:wh_linux@126.com
#主頁:
#版本:0.0.1
# last change:2011-11-17 09:45:28
#歷史:
#=============================================================================
'''
隨機導入
def ShowOne(單詞):
'''
單詞:參數是四個單詞的列表。
'''
i = random.randint(0,3)
打印單詞[i]
#防止閃光
原始輸入()
#假設這四個詞是從輸入習得中依次獲得的。
words = []
對於範圍(0,4)內的I:
words.append(raw_input("輸入單詞: "))
ShowOne(單詞)