Skip to content

Instantly share code, notes, and snippets.

View wblxyxolbkhv's full-sized avatar

Alexey Nikitenko wblxyxolbkhv

  • PandaDoc
  • Lisbon, Portugal
View GitHub Profile
@wblxyxolbkhv
wblxyxolbkhv / catfile.py
Created November 30, 2019 08:12
Cats cats cats
class Cat:
def __init__(self,
name,
color):
self.name = name
self.color = color
self.is_dirty = False
def sleep(self):
# 192.168.1.45
import socket
def receive():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('0.0.0.0', 7663))
s.listen(60)
client, addr = s.accept()
print('Подключено')