编写剪刀,石头,布。

import random class caiquan: def parameter(self): adm=int(input("请输入您的选择:0=剪刀 1=石头 2=布\n")) cop=random.randint(0, 2) res=adm - cop; A = ("剪刀", "石头", "布") p
相关文章
相关标签/搜索