SlideShare une entreprise Scribd logo
1  sur  16
4장 제어 Python 3 프로그래밍 2011.05.21 원종필
If 문 if <조건식1>: 	<구문1> elif <조건식2>: <구문2> else: 	<구문3> ,[object Object]
조건식이 참인 경우 : 이후의 구문이 수행
동일한 블록의 들여쓰기 정도는 항상 일치해야 한다,[object Object]
 False 인 경우
정수 계열의 0
실수 계열의 0.0
시퀀스 계열의 (), [], {}, 빈 문자열(“”)
아무것도 없음을 의미하는 None
False이외의 값이 할당된 변수는 참으로 판별,[object Object]
and(단축평가 사용)와 &
or(단축평가 사용) 와 |
좌변 피연산자가 우변 피연산자보다 먼저 단축평가 되는게 보장됨,[object Object]
반복문 도중 break로 인해 중간에 종료되지 않고 끝까지수행되었을때else 블록이 수행된다,[object Object]
 문자열,리스트, 튜플, 사전, 이터레이터 객체..
반복문수행중break 없이 끝까지 수행되었을 때 else블록 수행,[object Object]

Contenu connexe

Tendances

파이썬 숫자,변수,문자열
파이썬 숫자,변수,문자열파이썬 숫자,변수,문자열
파이썬 숫자,변수,문자열HoYong Na
 
이펙티브 C++ (7~9)
이펙티브 C++ (7~9)이펙티브 C++ (7~9)
이펙티브 C++ (7~9)익성 조
 
이펙티브 C++ 스터디
이펙티브 C++ 스터디이펙티브 C++ 스터디
이펙티브 C++ 스터디quxn6
 
Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수Park Jonggun
 
Secure coding-c-dcl-1
Secure coding-c-dcl-1Secure coding-c-dcl-1
Secure coding-c-dcl-1Seungyong Lee
 
02 control statement
02 control statement02 control statement
02 control statementJu-Hyung Lee
 
이펙티브 C++ 공부
이펙티브 C++ 공부이펙티브 C++ 공부
이펙티브 C++ 공부quxn6
 
이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디quxn6
 
[2011 04 30]python-3장
[2011 04 30]python-3장[2011 04 30]python-3장
[2011 04 30]python-3장Jong Pil Won
 
The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체해강
 

Tendances (20)

파이썬 숫자,변수,문자열
파이썬 숫자,변수,문자열파이썬 숫자,변수,문자열
파이썬 숫자,변수,문자열
 
이펙티브 C++ (7~9)
이펙티브 C++ (7~9)이펙티브 C++ (7~9)
이펙티브 C++ (7~9)
 
이펙티브 C++ 스터디
이펙티브 C++ 스터디이펙티브 C++ 스터디
이펙티브 C++ 스터디
 
Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수
 
STL study (skyLab)
STL study (skyLab)STL study (skyLab)
STL study (skyLab)
 
Modern effective cpp 항목1
Modern effective cpp 항목1Modern effective cpp 항목1
Modern effective cpp 항목1
 
Secure coding-c-dcl-1
Secure coding-c-dcl-1Secure coding-c-dcl-1
Secure coding-c-dcl-1
 
02 control statement
02 control statement02 control statement
02 control statement
 
이펙티브 C++ 공부
이펙티브 C++ 공부이펙티브 C++ 공부
이펙티브 C++ 공부
 
이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디
 
3 4 1
3 4 13 4 1
3 4 1
 
C review
C  reviewC  review
C review
 
[2011 04 30]python-3장
[2011 04 30]python-3장[2011 04 30]python-3장
[2011 04 30]python-3장
 
Java standard(8~13)
Java standard(8~13)Java standard(8~13)
Java standard(8~13)
 
Scala syntax function
Scala syntax functionScala syntax function
Scala syntax function
 
Haskell study 8
Haskell study 8Haskell study 8
Haskell study 8
 
The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체
 
3주차 스터디
3주차 스터디3주차 스터디
3주차 스터디
 
Iterator pattern
Iterator patternIterator pattern
Iterator pattern
 
Prototype
PrototypePrototype
Prototype
 

En vedette

Bai iii quy trinh tmdt
Bai iii   quy trinh tmdtBai iii   quy trinh tmdt
Bai iii quy trinh tmdtGiang Nguyễn
 
Правоведение курс лекций военмех
Правоведение курс лекций военмехПравоведение курс лекций военмех
Правоведение курс лекций военмехArtem
 
Tugas Kelompok IV Gas Insulated Cable
Tugas Kelompok IV Gas Insulated CableTugas Kelompok IV Gas Insulated Cable
Tugas Kelompok IV Gas Insulated Cablebuxzzz
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5kokila T
 
Ratificados 15 12-13
Ratificados 15 12-13Ratificados 15 12-13
Ratificados 15 12-13UTTA OSPAT
 
Types of cn, protocols and standards
Types of cn, protocols and standardsTypes of cn, protocols and standards
Types of cn, protocols and standardsbhavanatmithun
 
Hvorfor vi elsker Steria damene
Hvorfor vi elsker Steria dameneHvorfor vi elsker Steria damene
Hvorfor vi elsker Steria dameneOdd Inge Bjørdal
 
Sas presentation
Sas presentationSas presentation
Sas presentationDonna Spear
 
Thankful Journal Chase
Thankful Journal ChaseThankful Journal Chase
Thankful Journal Chasemicklethwait
 
年青人創業的困難和挑戰
年青人創業的困難和挑戰年青人創業的困難和挑戰
年青人創業的困難和挑戰suattop
 
SMART Leaders Report
SMART Leaders ReportSMART Leaders Report
SMART Leaders Reportdfsaustin
 
Til 5 B Og ForæLdre Tak For LåN
Til 5 B Og ForæLdre   Tak For LåNTil 5 B Og ForæLdre   Tak For LåN
Til 5 B Og ForæLdre Tak For LåNKmyllerup
 
23 bai phuc hoi anh chuyen nghiep
23 bai phuc hoi anh chuyen nghiep23 bai phuc hoi anh chuyen nghiep
23 bai phuc hoi anh chuyen nghiepGiang Nguyễn
 

En vedette (20)

Web Visions
Web VisionsWeb Visions
Web Visions
 
Bai iii quy trinh tmdt
Bai iii   quy trinh tmdtBai iii   quy trinh tmdt
Bai iii quy trinh tmdt
 
C1
C1C1
C1
 
3dsmax co ban
3dsmax co ban3dsmax co ban
3dsmax co ban
 
S2
S2S2
S2
 
Правоведение курс лекций военмех
Правоведение курс лекций военмехПравоведение курс лекций военмех
Правоведение курс лекций военмех
 
Groen kettles rus
Groen kettles rusGroen kettles rus
Groen kettles rus
 
Tugas Kelompok IV Gas Insulated Cable
Tugas Kelompok IV Gas Insulated CableTugas Kelompok IV Gas Insulated Cable
Tugas Kelompok IV Gas Insulated Cable
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5
 
Ratificados 15 12-13
Ratificados 15 12-13Ratificados 15 12-13
Ratificados 15 12-13
 
Types of cn, protocols and standards
Types of cn, protocols and standardsTypes of cn, protocols and standards
Types of cn, protocols and standards
 
Fóbia .
Fóbia .Fóbia .
Fóbia .
 
46fotosdanationalgeographic
46fotosdanationalgeographic46fotosdanationalgeographic
46fotosdanationalgeographic
 
Hvorfor vi elsker Steria damene
Hvorfor vi elsker Steria dameneHvorfor vi elsker Steria damene
Hvorfor vi elsker Steria damene
 
Sas presentation
Sas presentationSas presentation
Sas presentation
 
Thankful Journal Chase
Thankful Journal ChaseThankful Journal Chase
Thankful Journal Chase
 
年青人創業的困難和挑戰
年青人創業的困難和挑戰年青人創業的困難和挑戰
年青人創業的困難和挑戰
 
SMART Leaders Report
SMART Leaders ReportSMART Leaders Report
SMART Leaders Report
 
Til 5 B Og ForæLdre Tak For LåN
Til 5 B Og ForæLdre   Tak For LåNTil 5 B Og ForæLdre   Tak For LåN
Til 5 B Og ForæLdre Tak For LåN
 
23 bai phuc hoi anh chuyen nghiep
23 bai phuc hoi anh chuyen nghiep23 bai phuc hoi anh chuyen nghiep
23 bai phuc hoi anh chuyen nghiep
 

Similaire à [2011 05 21] 4장 제어

[2011 05 21] 4장 제어
[2011 05 21] 4장 제어[2011 05 21] 4장 제어
[2011 05 21] 4장 제어Jong Pil Won
 
Swift3 generic
Swift3 genericSwift3 generic
Swift3 genericEunjoo Im
 
파이썬정리 20160130
파이썬정리 20160130파이썬정리 20160130
파이썬정리 20160130Yong Joon Moon
 
Python 이해하기 20160815
Python 이해하기 20160815Python 이해하기 20160815
Python 이해하기 20160815Yong Joon Moon
 
Linq to object using c#
Linq to object using c#Linq to object using c#
Linq to object using c#병걸 윤
 
C++11 Tuple
C++11 TupleC++11 Tuple
C++11 Tuplequxn6
 
[Algorithm] Selection Sort
[Algorithm] Selection Sort[Algorithm] Selection Sort
[Algorithm] Selection SortBill Kim
 
파이썬 기초
파이썬 기초 파이썬 기초
파이썬 기초 Yong Joon Moon
 
Collection framework
Collection frameworkCollection framework
Collection frameworkssuser34b989
 
[Swift] Functions
[Swift] Functions[Swift] Functions
[Swift] FunctionsBill Kim
 
C수업자료
C수업자료C수업자료
C수업자료koominsu
 
C수업자료
C수업자료C수업자료
C수업자료koominsu
 

Similaire à [2011 05 21] 4장 제어 (14)

[2011 05 21] 4장 제어
[2011 05 21] 4장 제어[2011 05 21] 4장 제어
[2011 05 21] 4장 제어
 
Swift3 generic
Swift3 genericSwift3 generic
Swift3 generic
 
파이썬정리 20160130
파이썬정리 20160130파이썬정리 20160130
파이썬정리 20160130
 
Python 이해하기 20160815
Python 이해하기 20160815Python 이해하기 20160815
Python 이해하기 20160815
 
Linq to object using c#
Linq to object using c#Linq to object using c#
Linq to object using c#
 
C++11 Tuple
C++11 TupleC++11 Tuple
C++11 Tuple
 
[Algorithm] Selection Sort
[Algorithm] Selection Sort[Algorithm] Selection Sort
[Algorithm] Selection Sort
 
파이썬 기초
파이썬 기초 파이썬 기초
파이썬 기초
 
Collection framework
Collection frameworkCollection framework
Collection framework
 
[Swift] Functions
[Swift] Functions[Swift] Functions
[Swift] Functions
 
C수업자료
C수업자료C수업자료
C수업자료
 
C수업자료
C수업자료C수업자료
C수업자료
 
Java stream v0.1
Java stream v0.1Java stream v0.1
Java stream v0.1
 
Java stream v0.1
Java stream v0.1Java stream v0.1
Java stream v0.1
 

Plus de Jong Pil Won

[2012 11 12]애자일 회고
[2012 11 12]애자일 회고[2012 11 12]애자일 회고
[2012 11 12]애자일 회고Jong Pil Won
 
[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선Jong Pil Won
 
파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003Jong Pil Won
 
[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장Jong Pil Won
 
[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장Jong Pil Won
 
[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장Jong Pil Won
 
[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장Jong Pil Won
 
Tdd 실습&나머지
Tdd 실습&나머지Tdd 실습&나머지
Tdd 실습&나머지Jong Pil Won
 
[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개Jong Pil Won
 
10장 동기부여와훈련 경험
10장 동기부여와훈련 경험10장 동기부여와훈련 경험
10장 동기부여와훈련 경험Jong Pil Won
 

Plus de Jong Pil Won (12)

[2012 11 12]애자일 회고
[2012 11 12]애자일 회고[2012 11 12]애자일 회고
[2012 11 12]애자일 회고
 
[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선
 
파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003
 
[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장
 
[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장
 
[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장
 
[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장
 
Tdd 마무리
Tdd 마무리Tdd 마무리
Tdd 마무리
 
Tdd 실습&나머지
Tdd 실습&나머지Tdd 실습&나머지
Tdd 실습&나머지
 
[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개
 
Tdd 4장
Tdd 4장Tdd 4장
Tdd 4장
 
10장 동기부여와훈련 경험
10장 동기부여와훈련 경험10장 동기부여와훈련 경험
10장 동기부여와훈련 경험
 

[2011 05 21] 4장 제어