Difference between *args and args

前端 未结 0 734
时光取名叫无心
时光取名叫无心 2021-01-14 00:58

The function is to find even numbers.

def even_num(*args): 
  test1 = []
  for i in args:
    if i % 2 == 0:
      test1.append(i)
  return test1

print(even_         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题