ucanuupnobb icon indicating copy to clipboard operation
ucanuupnobb copied to clipboard

函数多个参数,列表表示方法

Open liujuanjuan1984 opened this issue 5 years ago • 0 comments

What gets printed?

def myfunc(x, y, z, a): print(x + y)

nums = [1, 2, 3, 4]

myfunc(*nums)

liujuanjuan1984 avatar Nov 11 '19 10:11 liujuanjuan1984