如何在主selenium python脚本中调用已定义的函数

时间:2011-07-26 22:36:51

标签: python

我在一个py文件中定义了python函数,我想在我的主脚本中包含该函数。 请给我解决方案。

1 个答案:

答案 0 :(得分:1)

from other_file import other_function

# use other function:
val = other_function()