June 2023
Intermediate to advanced
316 pages
4h 31m
Japanese
1 #!/usr/bin/env python 2 import sys, re, operator, string 3 4 # 5 # モナド(the one)クラス 6 # 7 class TFTheOne: 8 def __init__(self, v): 9 self._value = v 10 11 def bind(self, func): 12 self._value = func(self._value) 13 return self 14 15 def printme(self): 16 print(self._value) 17 18 # 19 # 関数 20 # 21 def read_file(path_to_file): 22 with open(path_to_file) as f: 23 data = f.read() 24 return data 25 26 def filter_chars(str_data): ...
Read now
Unlock full access