본문으로 바로가기
Python

강의

Python으로 함수 작성하기

중급기술 수준
업데이트됨 2025. 11.
유지보수 가능하고 재사용 가능한 복잡한 함수를 작성하는 모범 사례를 익히고, 이를 위한 훌륭한 문서화를 작성하는 방법을 배우십시오.
무료로 강의 시작
PythonProgramming4시간15 동영상46 연습 문제3,650 XP100K+성취 증명서

무료 계정을 만드세요

또는

계속 진행하시면 당사의 이용약관, 개인정보처리방침 및 귀하의 데이터가 미국에 저장되는 것에 동의하시는 것입니다.

수천 개 기업의 학습자들이 사랑하는

Group

2명 이상을 교육하시나요?

DataCamp for Business 체험

강의 설명

분석을 마치고 보고서를 만들었으며 모델까지 학습했나요? 다음 단계는 무엇일까요? 모델을 프로덕션에 배포하려면, Jupyter 노트북에서 탐색용으로 작성한 스크립트보다 훨씬 신뢰할 수 있는 코드가 필요해요. 이 과정인 Python으로 함수 작성하기에서는 복잡하면서도 깔끔한 함수를 작성하는 탄탄한 기초를 다져, 여러분이 팀에 연구와 엔지니어링 역량을 모두 기여할 수 있도록 도와드립니다. 컨텍스트 매니저와 데코레이터를 작성하는 방법 같은 유용한 팁을 배우고, 잘 문서화된 유지 보수가 쉬운 재사용 가능한 함수를 작성하는 모범 사례도 익히게 돼요. 좋은 연구를 해내면서 고품질 코드를 작성하는 사람을 ‘유니콘’이라고 하죠. 이 과정을 통해 그 비결을 직접 확인해 보세요!

선수 조건

Python Toolbox
1

Best Practices

The goal of this course is to transform you into a Python expert, and so the first chapter starts off with best practices when writing functions. You'll cover docstrings and why they matter and how to know when you need to turn a chunk of code into a function. You will also learn the details of how Python passes arguments to functions, as well as some common gotchas that can cause debugging headaches when calling functions.
챕터 시작
2

Context Managers

If you've ever seen the "with" keyword in Python and wondered what its deal was, then this is the chapter for you! Context managers are a convenient way to provide connections in Python and guarantee that those connections get cleaned up when you are done using them. This chapter will show you how to use context managers, as well as how to write your own.
챕터 시작
3

Decorators

Decorators are an extremely powerful concept in Python. They allow you to modify the behavior of a function without changing the code of the function itself. This chapter will lay the foundational concepts needed to thoroughly understand decorators (functions as objects, scope, and closures), and give you a good introduction into how decorators are used and defined. This deep dive into Python internals will set you up to be a superstar Pythonista.
챕터 시작
4

More on Decorators

Now that you understand how decorators work under the hood, this chapter gives you a bunch of real-world examples of when and how you would write decorators in your own code. You will also learn advanced decorator concepts like how to preserve the metadata of your decorated functions and how to write decorators that take arguments.
챕터 시작
Python으로 함수 작성하기
강의
완료

수료증 획득

LinkedIn 프로필, 이력서 또는 CV에 이 자격증을 추가하세요
소셜 미디어와 성과 평가에서 공유하세요
지금 등록

19백만 명 이상의 학습자와 함께 Python으로 함수 작성하기을(를) 시작하세요!

무료 계정을 만드세요

또는

계속 진행하시면 당사의 이용약관, 개인정보처리방침 및 귀하의 데이터가 미국에 저장되는 것에 동의하시는 것입니다.

DataCamp for Mobile을 통해 데이터 분석 능력을 향상시키세요.

모바일 강좌와 매일 5분 코딩 챌린지를 통해 이동 중에도 학습 효과를 높이세요.