如何传递函数参数来调用其他模块中的函数?

2024-04-19 21:09:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要使用arg调用另一个模块内的其他函数

谢谢大家!

def func (arg):
   if module.session.query(module.arg).filter(module.arg.id == id).one():
   #some other staff

Tags: 模块函数idifsessiondefargsome