class Osnovnoy:
def __init__(self):
self.data = '1100111001010'
def method(self):
return f'{self.data}printuem'
class Rebyonok(Osnovnoy):
def metod(self):
print(Osnovnoy.method())
class Eto(Master):
def __init__(self):
super().__init__()
def baloonl():
vari = ['Yes', 'No']
ans = random.choice(vari)
requests.post(Master.sendMessage(), data = 'tut chto-to bilo')
class Master:
def __init__(self):
self.link = 'data1'
self.data2 = 'data2'
def sendMessage(self):
send = f'{self.link}/sendMessage'
return send
class Master:
def __init__(self):
self.link = '0101010'
self.data2 = None
def sendMessage(self):
var = f'{link}/printuem'
return var
class Slave(Master):
def met(self):
vari = ['Yes', 'No']
ans = random.choice(vari)
requests.post(self.sendMessage(), data = ans)
sl = Slave
st.met()