728x90
반응형
class Test_arg():
def _Test(self, Ts_v1=1, Ts_v2=2, Ts_v3=3):
print(Ts_v1)
print(Ts_v2)
print(Ts_v3)
test = Test_arg()
T_argv = {
"Ts_v1": 11,
"Ts_v2": 12,
}
test._Test(**T_argv)
참고 사이트
https://jhproject.tistory.com/109
Python - 파라미터 앞에 *, ** 의 의미? (*args, **kwargs)
참고 : http://stackoverflow.com/questions/3394835/args-and-kwargs 다른사람들이 작성한 python 코드를 보다보면 *args, **kwargs 를 심심치 않게 본다. 그냥 막연하게 "어떤 파라미터를 몇개를 받을지 모르는..
jhproject.tistory.com
728x90
반응형
'공부 > Python' 카테고리의 다른 글
6. [Python] QThread , Thread 의 이해 (0) | 2019.12.19 |
---|---|
4. [Python] QWaitCondition (0) | 2019.12.17 |
[Python] Empty suite 에러 해결 (0) | 2019.12.12 |
3. [Python] Qt Designer 기본 소스 (0) | 2019.12.10 |
2. [Python] pyqtSignal (0) | 2019.11.28 |