需求:把word里面的表单内容获取 按照规则拼成字符串 转换成类似下面的样子 代码如下: from docx import Document import re def parse_docx(f): d = Document(f) table = d.tables for t in table: for row in range(1, len(t.rows)): str1 = "'" + d.tables[0].cell(row, 1).text.strip() + "' =
using ServiceStack.Web; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; namespace restService.Interface.Helper { public static class Entity