BLUE*ã¢ã«ã´ãªãºã ãå®è£ ãã¦ã¿ãã®ã§ããã£ããã ãããã¹ãã®èªåçæããã£ã¦ã¿ãã ä»åãã¹ã対象ã«ããã³ã¼ãã®ä»æ§ã¯ éããéãããæ¸ãè¾¼ããã®3ã¤ã®æä½ãã§ãã éãã¦ãªãã®ã«æ¸ãè¾¼ãã ãéããããããã¨ã©ã¼ã«ãªã ã¨ãããã® ããã¦ãã¡ããããã®ããã°ã®ããå®è£ ãï¼ class Target(object): # bad impl. def __init__(self): self.opened = False self.closed = False def open(self): self.opened = True def write(self): if not self.opened: raise RuntimeError if self.closed: raise RuntimeError def close(self): if not self.opened: rais
{{#tags}}- {{label}}
{{/tags}}