[Day8] 파이썬 프로그래밍 개념을 좀 더 이해하자.
- python bulit-in function (id): https://docs.python.org/3/library/functions.html#id
Built-in Functions — Python 3.8.5 documentation
Built-in Functions The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. abs(x) Return the absolute value of a number. The argument may be an integer or a floating po
docs.python.org
파이썬에서는 shallow copy와 deep copy라는 개념이 있는데, C의 reference와는 비슷하면서도 좀 다른 개념인 듯합니다... 아래 글을 읽어보세요. copy는 shallow copy라고 합니다.
- copy — Shallow and deep copy operations: https://docs.python.org/3/library/copy.html
copy — Shallow and deep copy operations — Python 3.8.5 documentation
copy — Shallow and deep copy operations Source code: Lib/copy.py Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes need
docs.python.org
딥러닝을 공부하면서 사용하는 파이썬 코드는 다 절차지향 같다는 느낌이 강하지만, 파이썬은 객체지향이 가능한 언어라고 합니다!
- 객체 지향이란 무엇인가 - 절차지향과의 차이점: https://pjh3749.tistory.com/244
객체 지향이란 무엇인가 - 절차지향과의 차이점
객체지향 개념 간단 정리 본 내용은 "개발자가 반드시 정복해야할 객체 지향과 디자인 패턴 - 최범균" 을 읽으며 정리한 내용입니다. 1. 절차 지향과 객체 지향 1.1 절차지향 절차지향이란 프로시�
pjh3749.tistory.com
- PEP 8 -- Style Guide for Python Code: https://www.python.org/dev/peps/pep-0008/
PEP 8 -- Style Guide for Python Code
The official home of the Python Programming Language
www.python.org
파이썬에서는 매직 메소드라는 것이 있는데, 쉽게 확인할 수 있는 점은 바로 함수 이름 앞뒤로 '__' (언더바 2개)가 붙어 있다는 점입니다. 이 함수의 특징에 대해 알아보고 싶다면 참고해 보세요.
- A Guide to Python's Magic Methods: https://rszalski.github.io/magicmethods/
A Guide to Python's Magic Methods « rafekettler.com
__exit__(self, exc, val, trace) with self as x: with statement context managers
rszalski.github.io
- 추상화 (컴퓨터 과학): https://ko.wikipedia.org/wiki/%EC%B6%94%EC%83%81%ED%99%94_(%EC%BB%B4%ED%93%A8%ED%84%B0_%EA%B3%BC%ED%95%99)
추상화 (컴퓨터 과학) - 위키백과, 우리 모두의 백과사전
위키백과, 우리 모두의 백과사전.
ko.wikipedia.org
- 캡슐화: ko.wikipedia.org/wiki/%EC%BA%A1%EC%8A%90%ED%99%94
캡슐화 - 위키백과, 우리 모두의 백과사전
위키백과, 우리 모두의 백과사전. 둘러보기로 가기 검색하러 가기 캡슐화(영어: encapsulation)는 객체 지향 프로그래밍에서 다음 2가지 측면이 있다:[1][2] 객체의 속성(data fields)과 행위(메서드, method
ko.wikipedia.org
파이썬도 객체지향언어이므로 상속이 가능하죠. super()에 대해 알아봅시다.
- Built-in function, super(): https://docs.python.org/3/library/functions.html#super
Built-in Functions — Python 3.8.5 documentation
Built-in Functions The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. abs(x) Return the absolute value of a number. The argument may be an integer or a floating po
docs.python.org