from random import randintclass Die(): def __int__(self,sidesparam=6): self.sides=sidesparam def roll_die(self): x=randint(1,self.sides) print('The die side is ',x)
添加回答
举报
0/150
提交
取消