1 Star 0 Fork 517

北京一呼通网络科技有限公司 / QUANTAXIS

forked from yutiansut / 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)
Python
1
https://gitee.com/bj118/QUANTAXIS.git
git@gitee.com:bj118/QUANTAXIS.git
bj118
QUANTAXIS
QUANTAXIS
master

搜索帮助