|
a = (4, 10, 7, 6)
def func(*args):
for i in args:
print(i, end=' ')
func(a) # Æ©Ç÷ΠÇÔ¼ö¿¡ Àü´Þ / ans : (4, 10, 7, 6)
def student(n, *args):
print("ÇлýÀÇ ¼ö´Â ÃÑ %d¸íÀÔ´Ï´Ù." %n)
print("Çлý À̸§ : ", end ='')
for name in args:
print(name, end=' ')
student(3, 'rebro', 'john', 'minsu')
# ÇлýÀÇ ¼ö´Â ÃÑ 3¸íÀÔ´Ï´Ù.
# Çлý À̸§ : rebro john minsu
Ãâó: https://rebro.kr/132 [RebroÀÇ ÄÚµù ÀϱâÀå:Ƽ½ºÅ丮] |
|