File size: 971 Bytes
ee83c82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project      : Python.
# @File         : test
# @Time         : 2022/9/30 下午3:27
# @Author       : yuanjie
# @WeChat       : meutils
# @Software     : PyCharm
# @Description  : 


from meutils.pipe import *

#
# def file_replace(file, old, new):
#     p = Path(file)
#     _ = (
#         p.read_text().replace(old, new)
#     )
#     p.write_text(_)
#
#
# import streamlit as st
#
# st_home = Path(str(st).split("'")[-2]).parent
#
# to_replace = [
#     (st_home/ "static/static/js/main.468e22f6.chunk.js", "https://github.com/streamlit/streamlit/issues/new/choose", "https://github.com/yuanjie-ai"),
#     (st_home/ "static/static/js/main.468e22f6.chunk.js", "Streamlit Inc. All rights reserved.", "Betterme Inc. All rights reserved."),
#  ]
# for i in to_replace:
#     file_replace(*i)
#

print(open(get_resolve_path('./data/【东北计算机】恒生电子2021业绩说明会纪要.pdf', __file__), "rb").read())