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 | 29 | 30 | 31 |
Tags
- Python
- ai assistant
- nosql
- pyspark
- list
- VPC
- SCALA APP
- ubuntu
- git
- tgw
- coding with ai
- AI
- django-debug-toolbar
- mcponaws
- django
- devops
- debug_toolbar
- 툴바안뜸
- Spark
- Transit Gateway
- debug toolbar
- AWS
- amazon q
- Amazon
- AWSKRUG
- MongoDB
- Eclipse
- json
Archives
- Today
- Total
STACKBASE
[Python] 위치/키워드 가변 매개변수 본문
반응형
#위치 가변 매개변수
def print_fruit(*args):
print(args)
print_fruit('melon', 'cherry', 'apple')
#키워드 가변 매개변수
def print_name(**kwargs):
for key, value in kwargs.items():
print(f'{key}:{value}')
print_name(name='John', content='cena')반응형
'프로그래밍 > Python' 카테고리의 다른 글
| [Python] map, filter 함수 (0) | 2021.11.28 |
|---|---|
| [Python] lambda function (0) | 2021.11.28 |
| [Python] 리스트 할당과 복사 (0) | 2021.11.24 |
| [Python] raise 구문 (0) | 2021.11.21 |
| [Python] try, except 구문 (0) | 2021.11.21 |