changxin commited on
Commit
b802901
1 Parent(s): db21241

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -3,6 +3,8 @@ import pandas as pd
3
  from datatable import (dt, f,fread, by, ifelse, update, sort,count, min, max, mean, sum, rowsum,rowmean,rowcount,shift,rbind,cbind,union)
4
  import requests
5
  import openpyxl
 
 
6
 
7
  '''
8
  import hashlib
@@ -81,6 +83,11 @@ def fx_rq(date:str):
81
  date = y + '年' + m + '月' + d + '日'
82
  return date
83
 
 
 
 
 
 
84
 
85
  '''
86
  def fx_dd(tk:str,s:str):
 
3
  from datatable import (dt, f,fread, by, ifelse, update, sort,count, min, max, mean, sum, rowsum,rowmean,rowcount,shift,rbind,cbind,union)
4
  import requests
5
  import openpyxl
6
+ import docx
7
+ from docx import Document
8
 
9
  '''
10
  import hashlib
 
83
  date = y + '年' + m + '月' + d + '日'
84
  return date
85
 
86
+ def wd(x):
87
+ doc=Document(x)
88
+ all_paragraphs = document.paragraphs
89
+ t=[y.text for paragraph in all_paragraphs]
90
+ return t
91
 
92
  '''
93
  def fx_dd(tk:str,s:str):