我有这个加星标的表达式,但它给出了错误SyntaxError: can't use starred expression here
,因此任何替代解决方案都会受到赞赏。
def checker(packages):
for pac in packages:
print(*pac)
a,b,c=*pac
return a,b,c
print(checker([[4,3,7],[9,6,1]]))
我有这个加星标的表达式,但它给出了错误SyntaxError: can't use starred expression here
,因此任何替代解决方案都会受到赞赏。
def checker(packages):
for pac in packages:
print(*pac)
a,b,c=*pac
return a,b,c
print(checker([[4,3,7],[9,6,1]]))