mkdir fff ddd
touch ddd/test.py ddd/__init__.py

sudo vi fff/te.py
写入:
import sys
sys.path.append('../')
from ddd import test

cd fff
python te.py

相关文章:

  • 2021-10-28
  • 2022-01-19
  • 2021-07-31
  • 2021-06-10
  • 2021-06-23
  • 2021-12-30
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案