1. Copyright@ 2016 All reserved by KrDAG
AUTOMATE THE
BORING STUFF
WITH PYTHON
삶을 윤택하게 해주는 코딩
KRDAG
장성만 (frontjang@naver.com)
2. Copyright@ 2016 All reserved by KrDAG
Part 1 - The Basics of Python Programming (~143p)
Introduction / Python Basics / Flow Control / Functions
Lists / Dictionaries and Structuring Data / Manipulating Strings
Part 2 - Automating Tasks (~439p)
Pattern Matching with Regular Expressions
Reading and Writing Files / Organizing Files
Debugging / Web Scraping
Working with Excel Spreadsheets
Working with PDF and Word Documents
Working with CSV Files and JSON Data
Time, Scheduling Tasks, and Launching Programs
Sending Email and Text Messages
Manipulating Images
Controlling the Keyboard and Mouse with GUI Automation
책 소개
Automate the Boring Stuff with Python
https://automatetheboringstuff.com/
https://github.com/iliyahoo/Automate-The-Boring-Stuff-With-Python
3. Copyright@ 2016 All reserved by KrDAG
Comparison to Java / C++
Python run slower; but take much less time to develop.
3-5 times shorter than Java, 5-10 times shorter than C++
no type declaring, powerful polymorphic list and dictionary types
Python as a "glue" language, while others as a low-level implementation language.
Everything in python is an object, and it sits on the heap
Python is similar to Java
Python is interpreted language while C++ is a compiled language
Python class members are determined at run-time
C++ has no has automatic memory management (garbage collection)
Python have a full set of reflection capabilities; Serialization by pickle.saves()
WHY PYTHON?
Trade-off between Productivity and Performance?
https://www.python.org/doc/essays/comparisons/
https://www.quora.com/What-is-the-difference-between-Python-and-C++#!n=12
4. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE
BASICS OF PYTHON
PROGRAMMING
Python 기초배우기
5. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 1. Python Basics
https://en.wikipedia.org/wiki/High_availability
#include <stdio.h>
int main()
{
float percent;
scanf("%f", &percent);
printf("%f",(100-percent)*0.01*365*24*60);
return 0;
}
gcc –o main main.c
./main
6. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 2. Flow Control
@cafepear
7. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 2. Flow Control
http://www.soccerline.co.kr/slboard/view.php?
uid=1988123089&page=41&code=totalboard
8. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 3. Functions
9. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 4. Lists
10. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 5. Dictionaries and Structuring Data
http://kin.naver.com/qna/detail.nhn?d1id=3&dirId=30104&docId=201995942&qb=7Jew7JiI7J24I
DEwMOuqhQ==&enc=utf8§ion=kin&rank=1&search_sort=0&spq=0
11. Copyright@ 2016 All reserved by KrDAG
PART 1 - THE BASICS OF PYTHON PROGRAMMING
Chapter 6. Manipulating Strings