python函数传参

2020-05-23  本文已影响0人  RayRaymond

***

def show_1(*args):
    print(args)

def show(*args):
    print(args,type(args))
    show_1(args)
    show_1(*args)

show(1,2)
# (1, 2) <class 'tuple'>
# ((1, 2),)
# (1, 2)

传参机制

上一篇下一篇

猜你喜欢

热点阅读