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 ..
Numbers12/4 #= 3.0 ,실수형으로 반환한다. 18//4 #= 4 #몫 5 ** 3 #= (5 * 5 * 5) (지수) 변수설정은 변수명 = 값으로 한다.tuna = 5 20 + tuna #=25 String 변수설정 String 을 위해서는 single quote ( ' ' ) 또는double quote ( " " ) 를 사용한다. string 에 quote 가 있을경우,"I don't think she is 20"'She said, "What part of the cow is the meatloaf from?"'으로 타입이 다른 것으로 감싸주거나 일반적으로 사용하는 escape (\) 를 사용하면된다. string = 'string' string = "I don't think she is ..
- Total
- Today
- Yesterday
- AWS
- RunLoop
- thread
- 읽기 좋은 코드가 좋은 코드다
- CIImage
- set
- EffectiveObjectiveC
- docker
- NSManagedObjectContext
- Block
- NSManagedObjectModel
- optional
- UIView
- ios
- NSManagedObject
- dictionary
- HTTP
- Arc
- string
- Swfit
- 꺼내먹어요
- delegate
- Swift 3
- applicationWillResignActive
- Swift 3.0
- Swift
- CGImage
- coredata
- Swift3
- workerThread
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |