Jupyter 加载文件夹里的模块

import os,sys

import cv2
import numpy as np

# path_module = os.path.abspath(os.path.join('C:\\Users\\Michael\\AILearn\\kerasfacerecognition'))
# if path_module not in sys.path:
#     sys.path.append(path_module)

import kerasfacerecognition.TestRun as TR

 TestRun.py



print("关关雎鸠,在河之洲。")


def ShiJing():
    print("关关雎鸠,在河之洲。窈窕淑女,君子好逑。")



class SJ:
    def printPoem(self):
        print("参差荇菜,左右流之。窈窕淑女,寤寐求之。"
              "求之不得,寤寐思服。悠哉悠哉,辗转反侧。")

 

Guess you like

Origin blog.csdn.net/moonlightpeng/article/details/121151913