파이썬은 string formatting을 다양한 방식으로 지원해왔습니다. 1) %-formatting name = 'Fred' age = 50 introduce = 'My name is %s, my age next year is %s' % (name, age+1) print(introduce) // 결과 My name is Fred, my age next year is 51 2) str.format name = 'Fred' age = 50 introduce = 'My name is {}, my age next year is {}'.format(name, age+1) print(introduce) // 결과 My name is Fred, my age next year is 51 3) string.Temp..
[1] List Comprehension PEP 202 - List Comprehensions PEP 202 -- List Comprehensions The official home of the Python Programming Language www.python.org List Comprehension은 기존 리스트를 기반으로 새로운 리스트를 만들어내는 구문입니다. 예를들어 leading and trailing whitespaces를 지워주는 strip을 리스트의 모든 아이템에 적용하고 싶다면 이렇게 리스트 컴프리헨션을 이용할 수 있습니다. list = ["죠르디 ", " 라이언 "] new_list = [item.strip() for item in list] print(new_list) // 결과 [..
- Total
- Today
- Yesterday
- Django Heroku Scheduler
- METAL
- ipad multitasking
- ribs
- Flutter getter setter
- 플러터 얼럿
- Django FCM
- Flutter Text Gradient
- PencilKit
- Flutter 로딩
- Watch App for iOS App vs Watch App
- flutter build mode
- Sketch 누끼
- DRF APIException
- 장고 URL querystring
- flutter 앱 출시
- flutter dynamic link
- Flutter Spacer
- 구글 Geocoding API
- github actions
- Flutter Clipboard
- drf custom error
- Django Firebase Cloud Messaging
- 장고 Custom Management Command
- SerializerMethodField
- 플러터 싱글톤
- Dart Factory
- flutter deep link
- cocoapod
- Python Type Hint
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |