1 Star 3 Fork 2

Isaac/QUANTAXIS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
replace.py 444 Bytes
一键复制 编辑 原始数据 按行查看 历史
yutiansut 提交于 2019-07-10 18:52 . #
import os
source_api_path = 'source'
automo_method = 'automodapi' # automodapi | automodsumm | automodule
for rst_file in os.listdir(source_api_path):
if rst_file.endswith('.rst'):
with open(source_api_path + os.sep + rst_file, 'r') as f:
contents = f.read()
contents = contents.replace('automodule', automo_method)
with open(source_api_path + os.sep + rst_file, 'w') as f:
f.write(contents)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/isaaclin007/QUANTAXIS.git
git@gitee.com:isaaclin007/QUANTAXIS.git
isaaclin007
QUANTAXIS
QUANTAXIS
master

搜索帮助