살며 생각하며,
141
namedtuple python APIs byHAJUNHO12분전 from collections import namedtuple # or import collections param4tuple = ['name', 'age', 'sex', 'address', 'phoneNumber'] personcardskim = namedtuple('whatever1', param4tuple, defaults=(None,) * len(param4tuple)) person001 = personcardskim('Eddie') print('person001 =', person001) personcardskim2 = namedtuple('whatever2', 'name age sex address phoneNumber') pe..
2020. 4. 6. 21:30
최근댓글