티스토리 뷰

공부

[Python] *args

승가비 2020. 2. 27. 01:16
728x90
def method(a, b, *args):
	print(a)
    print(b)
    for e in args:
    	print(e)

https://thispointer.com/python-args-how-to-pass-multiple-arguments-to-function/

728x90

'공부' 카테고리의 다른 글

[sh] sudo pkill cron  (0) 2020.03.10
[Python] Beautiful Soup  (0) 2020.02.27
Install MongoDB Community Edition on macOS  (0) 2020.02.27
[JS] RegExp match & test  (0) 2020.02.27
[Java] Date gap  (0) 2020.02.27
댓글