<aside> 🤔
파이써닉하다는 것은 뭘까?
</aside>
https://blog.startifact.com/posts/what-is-pythonic/
repr() : 개발자에게 유용한 형태의 문자열. 파이썬 콘솔이나 디버거에서 표현str() : 사용자에게 유용한 형태. print할 때 표현bytes() : 객체를 바이트 시퀀스로 표현format() : 특별 포맷 코드를 사용먼저 docstring으로 테스트를 작성하고, 모두 통과하게끔 코드를 작성했다.
그리고 책과 비교해보면서 다른 점이 있는지 확인했다.
copilot이 많이 도와줬다 😄
@classmethod 와 @staticmethod@classmethod : cls를 인수로 받는다.@staticmethod : 첫번째 인수를 받지 앟는다.