{"product_id":"110171","title":"파이썬 코딩의 기술 51 Better Python Code","description":"\u003ccenter\u003e\u003cdiv style=\"text-align:center\"\u003e\u003cimg src=\"https:\/\/tmgdisk01.cafe24.com\/images\/vs\/4172\/sv\/3jYEEOGtXDKqyX8t1GhXA2yGh39prL.png?v=1765039536\" style=\"max-width:100%;max-height:10px\"\u003e\u003c\/div\u003e\u003c\/center\u003e\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\u003ccenter\u003e\n\u003cdiv style=\"width:95%\"\u003e\n\u003cdiv style=\"text-align:center;font-size:30px;font-weight:bolder;line-height:1.6em\"\u003e파이썬 코딩의 기술 51 Better Python Code\u003c\/div\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003cdiv style=\"border-bottom:1px;border-bottom-style:dotted;border-color:;padding-bottom:20px\"\u003e\u003ccenter\u003e\u003ctable align=\"center\" width=\"100%\"\u003e\u003ctbody style=\"border:0px\"\u003e\n\u003ctr\u003e\u003ctd align=\"center\" style=\"line-height:1.2em;text-align:center;font-size:18px;color:black;font-weight:bold;padding-bottom:20px;\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003ctd style=\"text-align:center\"\u003e\u003cimg src=\"https:\/\/image.yes24.com\/goods\/128897247\/XL\" style=\"max-width:100%;height:auto\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003c\/tbody\u003e\u003c\/table\u003e\u003c\/center\u003e\u003c\/div\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003cdiv style=\"width:95%;{split_style6}padding-top:20px;padding-bottom:20px\"\u003e\n\u003cdiv style=\"text-align:left;font-size:16px;font-weight:bold;padding-bottom:20px\"\u003eDescription\u003c\/div\u003e\n\u003cdiv style=\"text-align:left;word-break:break-all;font-size:14px;line-height:1.6em;\"\u003e\n\u003cdiv\u003e \u003ch5\u003e\u003cb\u003e책소개\u003c\/b\u003e\u003c\/h5\u003e \u003c\/div\u003e \u003cdiv\u003e \u003cdiv\u003e \u003cdiv\u003e  \u003cb\u003e파이썬 설계 철학까지 이해하는 파이썬 코딩의 기술 실전편 51!\u003cbr\u003e지금보다 더 나은 프로그래머가 되고 싶은, 모든 파이썬 개발자를 위한, 파이썬 전문가 가이드!\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e파이썬 코딩에는 파이썬 다운 기술이 필요하다! 저자는 25년간 열정적으로 파이썬을 사랑하고 사용해오면서 자신의 코드 및 실제 현업 코드에서 파이썬 개발자들이 쉽게 빠지는 잘못, 함정, 오류들을 발견해 왔다.\u003cbr\u003e이 책은 그 중 51가지를 선별해 관련된 개념끼리 묶어서 총 9개 장으로 소개한다.\u003cbr\u003e각 장과 절의 내용은 서로 독립적으로 구성하여 그때그때 필요한 부분만 참고할 수 있게 했다.\u003cbr\u003e또한, 실제 프로젝트 상황 및 간결하고 명확한 예제를 제시해 문제와 솔루션을 깊이 이해하고, 문제에 대해 올바르게 사고하는 방법을 설명하려고 노력했다.\u003cbr\u003e문제와 솔루션을 이해하는 과정에서 파이썬의 설계 철학과 파이썬이 추구하는 가치를 다시 한번 상기하고, 파이썬의 잠재력을 끌어올리는 프로그래밍 기법을 배우고, 궁극적으로 파이썬 코드의 질을 한 단계 향상시킬 수 있을 것이다.\u003cbr\u003e\u003cbr\u003e \u003c\/div\u003e \u003c\/div\u003e \u003cdiv\u003e \u003cul\u003e \u003cli\u003e 책의 일부 내용을 미리 읽어보실 수 있습니다.\u003cbr\u003e\u003cspan\u003e미리보기\u003c\/span\u003e\n\u003c\/li\u003e \u003c\/ul\u003e \u003c\/div\u003e \u003c\/div\u003e \u003cbr\u003e\u003cdiv\u003e \u003ch5\u003e\u003cb\u003e목차\u003c\/b\u003e\u003c\/h5\u003e \u003c\/div\u003e \u003cdiv\u003e \u003cdiv\u003e  \u003cb\u003e1장 잘못된 방식으로 순환하기 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__1.1 (드물지만) 순환을 위해 목록 생성하기 \u003cbr\u003e__1.2 색인을 순환하는 대신 enumerate( ) 사용하기 \u003cbr\u003e__1.3 dict.items( )가 필요할 경우 dict.keys( )로 순환하지 않기 \u003cbr\u003e__1.4 순환 중 객체 변형\u003cbr\u003e__1.5 while 순환보다 for 순환 사용하기 \u003cbr\u003e__1.6 ‘순환과 절반’을 위한 바다코끼리 연산자\u003cbr\u003e__1.7 zip( )으로 다중 반복 가능 객체 간소화하기 \u003cbr\u003e__1.8 zip(strict=True)과 itertools.zip_longest( ) \u003cbr\u003e__1.9 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e2장 동등성과 동일성의 혼동 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__2.1 클로저의 늦은 연결 \u003cbr\u003e__2.2 불리언 논리 값에 대한 지나친 검증 \u003cbr\u003e__2.3 x == None 비교하기 \u003cbr\u003e__2.4 가변 기본 매개 변수에 대한 오해 \u003cbr\u003e____2.4.1 첫 번째 방법, 클래스 사용하기\u003cbr\u003e____2.4.2 두 번째 방법, None 보초 값 사용하기 \u003cbr\u003e____2.4.3 세 번째 방법, 상태 생성기의 이점 이용하기 \u003cbr\u003e__2.5 가변 객체에 대한 복사 대 참조 \u003cbr\u003e__2.6 (재사용이 있는 상황에서) is와 == 혼동하기 \u003cbr\u003e__2.7 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e3장 파이썬의 여러 가지 함정 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__3.1 이름 지정 \u003cbr\u003e____3.1.1 표준 라이브러리 모듈과 동일한 파일 이름 사용하기\u003cbr\u003e____3.1.2 import * 사용 피하기 \u003cbr\u003e____3.1.3 비어 있거나 지나치게 일반적인 except 문 \u003cbr\u003e__3.2 단순 문자열 연결의 2차 시간 복잡도 \u003cbr\u003e__3.3 파일을 열 때 상황 정보 관리자 사용하기\u003cbr\u003e____3.3.1 첫 번째 위험\u003cbr\u003e____3.3.2 두 번째 위험 \u003cbr\u003e____3.3.3 취약성 수정하기\u003cbr\u003e__3.4 .sort( )와 sorted( )의 선택적 매개 변수 key\u003cbr\u003e__3.5 불확실한 키에는 dict.get( ) 사용하기 \u003cbr\u003e__3.6 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e4장 파이썬 고급 활용 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__4.1 type(x) == type(y) 비교하기 \u003cbr\u003e__4.2 (다시 한번) 이름 지정 \u003cbr\u003e____4.2.1 내장 이름의 재정의 \u003cbr\u003e____4.2.2 보호된 속성에 직접 접근하기 \u003cbr\u003e__4.3 사용 빈도가 낮은 기능에 주목하기 \u003cbr\u003e____4.3.1 f 문자열 디버깅 \u003cbr\u003e____4.3.2 가공자의 우아한 마법 \u003cbr\u003e____4.3.3 itertools (충분히) 사용하기 \u003cbr\u003e____4.3.4 more-itertools 제3자 라이브러리 \u003cbr\u003e__4.4 자료형 주석은 실행 시간 자료형이 아니다 \u003cbr\u003e____4.4.1 자료형 주석은 실행 시간 제약이 아니다 \u003cbr\u003e____4.4.2 typing.NewType()을 실행 시간 자료형으로 오해하기 \u003cbr\u003e__4.5 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e5장 할 수 있다고 해서 해야 한다는 뜻은 아니다 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__5.1 메타클래스 \u003cbr\u003e__5.2 원숭이 패치 \u003cbr\u003e__5.3 읽기 메서드와 설정 메서드\u003cbr\u003e__5.4 허락보다 용서받는 것이 더 쉽다 \u003cbr\u003e__5.5 구조적 패턴 대조 \u003cbr\u003e__5.6 정규 표현식과 재앙적 역추적 \u003cbr\u003e__5.7 정리\u003cbr\u003e\u003cbr\u003e\u003cb\u003e6장 적절한 데이터 구조 선택하기 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__6.1 collections.defaultdict\u003cbr\u003e__6.2 collections.Counter\u003cbr\u003e____6.2.1 해결책 \u003cbr\u003e____6.2.2 잘못 \u003cbr\u003e__6.3 collections.deque \u003cbr\u003e____6.3.1 해결책 \u003cbr\u003e____6.3.2 잘못 \u003cbr\u003e__6.4 collections.ChainMap \u003cbr\u003e____6.4.1 해결책 \u003cbr\u003e____6.4.2 잘못 \u003cbr\u003e__6.5 데이터 클래스와 명명된 튜플 \u003cbr\u003e____6.5.1 명명된 튜플 사용하기\u003cbr\u003e____6.5.2 정적과 동적\u003cbr\u003e____6.5.3 데이터 클래스 \u003cbr\u003e__6.6 효과적인 구상 연속 순서열 \u003cbr\u003e__6.7 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e7장 데이터 구조의 잘못된 사용 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__7.1 반복된 목록 탐색의 2차 시간 복잡도\u003cbr\u003e__7.2 목록 중간에서 요소를 제거하거나 추가하기\u003cbr\u003e____7.2.1 좀 더 효율적인 데이터 구조\u003cbr\u003e__7.3 문자열은 문자열의 반복 가능한 객체 집합 \u003cbr\u003e__7.4 상수를 사용하는 대신 enum을 (자주) 사용하기 \u003cbr\u003e__7.5 많이 알려지지 않은 사전 메서드 익히기 \u003cbr\u003e____7.5.1 객체를 정의하는 사전 \u003cbr\u003e____7.5.2 정기적으로 발생하는 잘못으로 돌아가기 \u003cbr\u003e__7.6 JSON과 파이썬은 서로 깔끔하게 변환되지 않는다 \u003cbr\u003e____7.6.1 JSON에 대한 몇 가지 배경 \u003cbr\u003e____7.6.2 왕복에 실패하는 데이터\u003cbr\u003e__7.7 자신만의 데이터 구조 만들기 \u003cbr\u003e____7.7.1 자신만의 것을 만드는 것이 나쁜 생각일 때 \u003cbr\u003e____7.7.2 자신만의 것을 만드는 것이 좋은 생각일 때 \u003cbr\u003e____7.7.3 핵심 요약 \u003cbr\u003e__7.8 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e8장 보안\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__8.1 무작위성의 종류 \u003cbr\u003e____8.1.1 암호학적 무작위성을 위해 secrets 사용하기\u003cbr\u003e____8.1.2 재현 가능한 무작위 분포 \u003cbr\u003e__8.2 ‘안전한’ 소스 코드에 비밀번호나 기타 비밀 정보 넣기 \u003cbr\u003e__8.3 ‘자신만의’ 보안 기제 만들기\u003cbr\u003e__8.4 마이크로 서비스에 SSL\/TLS 사용하기\u003cbr\u003e__8.5 제3자 라이브러리 requests 사용하기 \u003cbr\u003e__8.6 데이터베이스 API를 사용하지 않을 경우의 SQL 주입 공격 \u003cbr\u003e__8.7 안전하다는 가정을 확인하기 위해 assert 사용하지 않기 \u003cbr\u003e__8.8 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e9장 파이썬에서의 수치 계산\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__9.1 IEEE-754 부동 소수점 숫자 이해하기\u003cbr\u003e____9.1.1 NaN(그리고 다른 부동 소수점 숫자)을 비교하기 \u003cbr\u003e____9.1.2 NaN과 statistics.median() \u003cbr\u003e____9.1.3 부동 소수점 숫자의 순진한 사용: 결합법칙과 분배법칙\u003cbr\u003e____9.1.4 부동 소수점 숫자의 순진한 사용: 입자성\u003cbr\u003e__9.2 숫자 자료형 \u003cbr\u003e____9.2.1 금융 계산에 부동 소수점 숫자를 사용하지 않기\u003cbr\u003e____9.2.2 수치 데이터 자료형의 비직관적인 동작 \u003cbr\u003e__9.3 정리 \u003cbr\u003e\u003cbr\u003e\u003cb\u003e부록 다른 책에서 읽을 만한 주제\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e__A.1 테스트 주도 개발\u003cbr\u003e__A.2 동시성 \u003cbr\u003e__A.3 패키징\u003cbr\u003e__A.4 자료형 검사\u003cbr\u003e__A.5 수치 및 데이터프레임 라이브러리 \u003cbr\u003e\u003cbr\u003e찾아보기 \u003cbr\u003e파이썬 코딩의 기술 51가지 찾아보기 \u003c\/div\u003e \u003cdiv\u003e\u003c\/div\u003e \u003c\/div\u003e \u003cbr\u003e\u003cdiv\u003e \u003ch5\u003e\u003cb\u003e상세 이미지\u003c\/b\u003e\u003c\/h5\u003e \u003c\/div\u003e \u003cdiv\u003e \u003cdiv\u003e \u003cimg src=\"https:\/\/image.yes24.com\/momo\/TopCate4599\/MidCate001\/459809081.jpg\" border=\"0\" alt=\"상세 이미지 1\"\u003e \u003c\/div\u003e \u003c\/div\u003e \u003cbr\u003e\u003cdiv\u003e \u003ch5\u003e\u003cb\u003e출판사 리뷰\u003c\/b\u003e\u003c\/h5\u003e \u003c\/div\u003e \u003cdiv\u003e \u003cdiv\u003e  간단하고 깔끔하게, 명확하고 효율적으로, 파이썬을 사용하라.\u003cbr\u003e\u003cbr\u003e\u003cb\u003e파이썬을 파이썬답게 사용하자 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003ewidgets.set_count(widgets.get_count() + 1) 파이썬 전문가가 이 코드를 보았다면 훨씬 직관적이고 알기 쉬운 widgets.count += 1을 사용했을 것이다.\u003cbr\u003e많은 파이썬 코드가 잘못되었거나 우아하지 않거나 다른 언어를 사용하는 방식을 사용한 탓에 파이썬답지 않다.\u003cbr\u003e\u003cbr\u003e\u003cb\u003e파이썬 전문가가 되자 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e일반 코더와 파이썬 전문가를 구분하는 기준은 무엇일까? 단순히 관행을 아는 것에 그치지 않고, 파이썬이 가진 다양한 측면의 장점과 함정을 이해하여 왜 반드시 이 방법을 사용해야 하는지 아는 것이다.\u003cbr\u003e파이썬의 강력함, 개성, 철학을 잘 이해하고 코드를 작성해보자.\u003cbr\u003e\u003cbr\u003e\u003cb\u003e함정, 문제, 시행착오를 피하자 \u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e각 장마다 파이썬 개발자들이 쉽게 빠질 수 있는 잘못, 함정, 오류를 제시하고, 이를 피하는 방법과 솔루션을 간결하고 명확한 코드 예제로 설명했다.\u003cbr\u003e모든 문제는 저자가 실제 코드에서, 때로는 필드에서, 때로는 코드 리뷰 중에 발견한 문제다.\u003cbr\u003e버그를 피하고 효율적인 코드를 작성하는 방법을 배우자.\u003cbr\u003e\u003cbr\u003e\u003cb\u003e[지은이 서문]\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e이 책을 처음부터 끝까지 모두 읽을 필요는 없습니다.\u003cbr\u003e물론 전부 읽는 것이 여러분에게 도움이 될 것임은 자명합니다.\u003cbr\u003e각 장은 관련된 개념을 묶어서 다루고 있지만 서로 독립적이며, 각 장의 절도 자체적인 완결성을 가지고 있습니다.\u003cbr\u003e필요한 부분만 읽을 수 있으며, 그렇다 해도 각각의 내용은 매우 흥미로울 것입니다.\u003cbr\u003e일부는 다른 부분에 비해 더 높은 수준의 내용을 다루기도 하지만, 쉬운 내용을 다룬다고 생각되는 부분에서도 여러분이 알지 못했던 새로운 뉘앙스를 발견할 수 있고, 반대로 고급 내용을 다루는 부분에서도 접근하기 쉬우며 깨달음을 주는 내용을 발견할 수 있을 것입니다.\u003cbr\u003e\u003cbr\u003e\u003cb\u003e[옮긴이 서문]\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003e파이썬 세계의 유명 인사인 데이비드 메르츠가 집필한 『Better Python Code』를 우리말로 옮기면서 느낀 것은 파이썬은 개발자가 어떻게 사용하느냐에 따라 완전히 다른 모습을 보여 주는 언어라는 것입니다.\u003cbr\u003e이 책은 일반적으로 우리가 파이썬 개발 서적에서 기대하는 내용인 파이썬 프로그래밍 언어의 풍부한 가능성을 탐구하거나 그 안에서 좀 더 효율적이고 우아한 코드를 작성하는 방법을 제시하는 것에서 그치지 않고, 파이썬 개발자로서 어떤 것이 올바른 개발 방법인가에 대해 끊임없이 고민하고 개선해 나가도록 채찍질합니다.\u003cbr\u003e그리고 저자는 깊은 지식과 풍부한 경험을 바탕으로 개발자들이 파이썬 코드의 질을 한 단계 높일 수 있는 방법을 세심하게 안내합니다.\u003cbr\u003e\n\u003c\/div\u003e \u003cdiv\u003e\u003c\/div\u003e \u003c\/div\u003e \u003c\/div\u003e\n\u003c\/div\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003cdiv style=\"width:95%;padding-top:20px;padding-bottom:20px\"\u003e\n\u003cdiv style=\"text-align:left;font-size:16px;font-weight:bold;padding-bottom:20px\"\u003eGOODS SPECIFICS\u003c\/div\u003e\n\u003cdiv style=\"text-align:left;font-size:14px;line-height:1.6em;\"\u003e\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e- \u003cstrong\u003e발행일 : \u003c\/strong\u003e2024년 07월 15일\u003c\/div\u003e\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e- \u003cstrong\u003e쪽수, 무게, 크기 : \u003c\/strong\u003e384쪽 | 568g | 152*225*16mm\u003c\/div\u003e\n\u003cdiv style=\"width:100%;margin-bottom:5px;line-height:1.6em;font-size:14px\"\u003e- \u003cstrong\u003eISBN13 : \u003c\/strong\u003e9791140714056\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003ccenter\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003ccenter\u003e\u003ctable\u003e\u003ctr\u003e\u003ctd style=\"height:10px\"\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/center\u003e\n\u003cspan\u003e\u003c\/span\u003e\n\u003c\/center\u003e\n\u003c\/center\u003e","brand":"LIBRAIRIE COREENNE","offers":[{"title":"Default Title","offer_id":43892483260458,"sku":"110171","price":55.96,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0683\/2750\/5962\/files\/d3375197663e1164e13b712bf3a6d228.jpg?v=1765378984","url":"https:\/\/librairie.coreenne.fr\/ko\/products\/110171","provider":"LIBRAIRIE COREENNE","version":"1.0","type":"link"}