python的封包和解包

Posted badbadboy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python的封包和解包相关的知识,希望对你有一定的参考价值。

#封包
def as1(*a):
    print(a)
as1(1,2,3)

#解包
def as2(a):
    print(*a)
as2([1,2,3])

以上是关于python的封包和解包的主要内容,如果未能解决你的问题,请参考以下文章