데이터들 중 같은 필드 값을 가지는 것중 가장 오래된 자료만 가져오기(중복값을 이용한 하나의 해당 자료만 가져오기, ex. 하나의 글을 여러명이 스크랩했을 때, 가장 오래된 글 하나만 가져오기, 출처주소와 같은 기준값이 정해져 있어야한다. )
# 같은 필드 값을 가진것 중 가장 오래된 것 또는 최소값인 하나만 가져오기
python의 class, def에서 사용되는 self는 생성된 클래스의 instance객체를 가리키는 변수이다.
파이썬은 변수를 미리 선언하는게 아니라 동적으로 __init__이나 def안에서 동적으로 생성 할당한다. 같은 클래스의 인스턴스 객체는 서로 다른 클래스 변수, 함수 변수를 가질 수 있다.
즉, 같은 노트북 이라는 객체가 있어도, 노트북마다 odd가 있을 수도 없을 수 도 있는 것처럼 클래스의 인스턴스끼리는 서로 다를 수 있다는 것이다.
# -*- coding: utf-8 -*-
파이썬 파일 최상단부에 입력하면 한글 주석을 사용할 수 있다.