Modules (파일 분리)자주 사용하는 함수 및 클래스를 하나의 파일 형태로 모아두는 것을 모듈화한다고 한다. 위와같이 print_helper.py 와 /dictionary/dictionary_helper.py 를 만들었다면아래와 같이 import 시킬 수 있다.import print_helper from dictionary import dictionary_helper Exceptionstry-except-finallywhile True: try: number = int(input('What is your favorite number?\n')) print(23 / number) break except ValueError: print('Make sure and enter a number') except ..
기타 개발/Python
2017. 2. 21. 00:43
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Block
- NSManagedObjectContext
- EffectiveObjectiveC
- ios
- RunLoop
- applicationWillResignActive
- 꺼내먹어요
- AWS
- Swift 3.0
- HTTP
- CIImage
- thread
- set
- NSManagedObject
- delegate
- string
- Swift
- optional
- coredata
- Swift 3
- Swfit
- Arc
- NSManagedObjectModel
- dictionary
- 읽기 좋은 코드가 좋은 코드다
- docker
- UIView
- CGImage
- workerThread
- Swift3
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
글 보관함