This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Cat: | |
| def __init__(self, | |
| name, | |
| color): | |
| self.name = name | |
| self.color = color | |
| self.is_dirty = False | |
| def sleep(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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('Подключено') |