在paravi中导入自制python函数

2024-04-20 10:33:13 发布

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

我想在paraview中包含的python shell中导入基本函数。我试过:

import os
os.chdir('/path/to/my/directory')
import hello_world

结果是:

Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'hello_world' is not defined

我打个招呼_世界.py在目录中。。。你知道吗


Tags: topath函数importmosthelloworldos