Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 애너그램 그룹
- 액션바 필요없숴
- col -1 from CursorWindow
- python
- pwnable.kr
- Couldn't read row 0
- Drive-By-Download
- 포너블
- 파이썬
- 10814
- kotlin
- 클라우드란?
- 6566
- pwnable
- java.lang.IllegalStateException
- 페니빙
- cmd1
- 클라우드가 뭐야
- SQLiteConstraintException
- 나이순 정렬
- UNIQUE constraint failed
- Docker
- 코틀린
- 블록체인
- cmd2
- pwable.kr
- 백준
- tlqkf
- 쏘큩
- Make sure the Cursor is initialized correctly before accessing data for it.
Archives
- Today
- Total
목록나이순 정렬 (1)
푸르미르
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/on6pj/btqVzRnP7f5/eKLk4Ua6ZNJemIyP6Cjeb1/img.png)
이 문제를 풀다가 알게된 새로운 사실이 있어서 글을 쓰게 되었다. 1 2 3 4 5 6 7 8 n=int(input()) member=[] for i in range(n): age, name=map(str, input().split()) member.append(tuple(int(age), name())) member.sort(key=lambda x: x[0]) for age, name in member: print(age, name) cs 회원의 나이와 이름을 tuple constructor로 묶어 member라는 리스트에 append했는데 오류가 났다. TypeError: tuple expected at most 1 argument, got 2 tuple생성자는 1개의 argument를 받는데 2개를..
Baekjoon Online Judge
2021. 2. 3. 21:56