Calling foo(object) repeatedly for every imported object in Python

前端 未结 0 395
一向
一向 2020-12-01 04:07
from module import a, b, c
foo(a)
foo(b)
foo(c)

Is there a way to avoid having to call foo(x)for each imported object?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题