June 2023
Intermediate to advanced
316 pages
4h 31m
Japanese
1 #!/usr/bin/env python 2 import sys, re, operator, string 3 4 class DataStorageManager: 5 """ ファイル内容のモデル化 """ 6 _data = '' 7 8 def dispatch(self, message): 9 if message[0] == 'init': 10 return self._init(message[1]) 11 elif message[0] == 'words': 12 return self._words() 13 else: 14 raise Exception("Message not understood " + message[0]) 15 16 def _init(self, path_to_file): 17 with open(path_to_file) as f: 18 self._data ...
Read now
Unlock full access