我想创建一个可以执行以下操作的方法,我可以知道该怎么做吗?:
import os
import docx2txt
os.chdir("C:\\Users\\user\\PycharmProjects\\FYP\\dataprep\\source_documents")
def get_ednotes(list_all_files):
#get the file directory
list_all_files = os.getcwd()
my_text = docx2txt.process(list_all_files)
#extract text from file
#store extracted data in an array
#return array