05-21 07:17
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Reference Type
- OOP
- 셀레니움
- python
- Polymolphism
- systemd
- Mac
- Unity
- descriptive statistics
- 백준
- selenium
- X윈도우
- Binary Search
- spring
- Inheritance
- 자바
- Class
- literal
- Entity Set
- 리눅스 마스터 1급
- Operator
- dbms
- Java
- Entity
- External Scheme
- Physical Scheme
- BFS
- 리눅스
- X.org
- preprocessing
Archives
- Today
- Total
목록itemgetter (1)
Byeol Lo
operator 모듈의 itemgetter, attrgetter 사용하기
from operator import itemgetter, attrgetter student_tuples = [ ('수학', 105), ('영어', 140), ('과학', 133), ('국어', 100) ] class Student : def __init__(self, name, grade, age) : self.name = name self.grade = grade self.age = age def __repr__(self) : return repr((self.name, self.grade, self.age)) student_objects = [ Student('홍길동', "A+", 22), Student('아이유', "A0", 20), Student('김구', "A+", 21), Student('야스..
Programming Language/Python
2022. 6. 16. 16:35