__init__.py 209 B

123456789
  1. def write_md(f_dir, content):
  2. with open(f_dir, 'w') as md:
  3. md.write(content)
  4. def read_line_md(f_dir):
  5. with open(f_dir, 'r') as md:
  6. pre_content = md.readlines()
  7. return pre_content