잠금/해제 스크립트의 명령어를 모아 하나의 스크립트로 만들고 명령어를 실행합니다. 이를 위
해 먼저 두 스크립트를 다음과 같이 결합합니다.
classScript:
...
def__add__(self, other):
return Script(self.cmds + other.cmds)
➊
➊ 두 스크립트의 명령어를 합하여 스크립트 객체를 생성합니다.
3
입력은 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.