編寫剪刀,石頭,布。

import random class caiquan: def parameter(self): adm=int(input("請輸入您的選擇:0=剪刀 1=石頭 2=布\n")) cop=random.randint(0, 2) res=adm - cop; A = ("剪刀", "石頭", "布") p
相關文章
相關標籤/搜索