Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- RxSwift
- binder
- MaxHeap
- URLSession
- ReactorKit
- ios
- async
- Combine
- 사내배포
- readLine
- Asnyc
- 입력
- vtable
- delays deallocation
- weak self
- DISPATCH
- BidirectionalCollection
- hitTest
- Custom Class
- swift
- Python
- 공백
- AVCaptureSession
- 전자출입
- UserDefaults
- reversed
- input
- UIResponder
- Responder chain
- moya
Archives
- Today
- Total
목록배열 (1)
틈틈히 적어보는 개발 일기
[Python] 입력받는 문자를 내맘대로!
공백을 기준으로 입력받은 값을 나누어 arr에 배열로 저장합니다. # split() 내부에 '(자를 문자)' 형식으로 특정 문자를 자를수도 있습니다. arr = input().split() # Input: 1 2 3 4 # Output: ['1', '2', '3', '4'] 각각의 문자를 int 형으로 변환하여 각 변수에 저장(매핑)합니다. # int 대신 다른 자료형을 사용할 수 있습니다. x, y = map(int, input().split()) # Input: 1 2 # Output: x = 1, y = 2 int 형으로 변환된 각 변수들을 list 형식으로 변환하여 저장합니다. arr = list(map(int, input().split())) # Input 1 2 3 4 # Output [1, ..
🍯 알고리즘
2021. 2. 2. 19:34