Python一次性传入多个参数怎样传
发布网友
发布时间:2022-04-06 02:11
我来回答
共1个回答
热心网友
时间:2022-04-06 03:40
# use list object
# use dict object
def func(params):
for p in params:
# do something
def func(params):
for k, v in params:
if k == 'P1':
# do something with coresponding v as parameter
# similar processing