import random
class Unco:
init_size = 1
init_color = '茶'
def __init__(self, size = init_size, color = init_color):
self.size = size
self.color = color
def wayBy(self):
return ['Ketsu','Shiri','Oido']
def getUnco(self, how):
how = how[random.randrange(0, 3, 1)]
return 'Size' + str(self.size) + 'で色が' + str(self.color) + 'の奴を手法は' + how
#クラスの中はselfを付ける
kuso = Unco()
how = kuso.wayBy()
if len(how) < 1:
how = 'Anal'
way = kuso.getUnco(how)
print(way)