1 Star 0 Fork 3

lina/CSDN-articles

forked from Python-ZZY/CSDN-articles 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
generator.py 561 Bytes
一键复制 编辑 原始数据 按行查看 历史
Python-ZZY 提交于 2024-07-24 12:51 +08:00 . add pymunk
obj = "pymunk"
res = ["# Python {}最完整教程 总目录".format(obj), "专栏地址: {}"]
with open(f"{obj}/trees.py", encoding="utf8") as f:
exec(f.read().rstrip("\n"))
for count, (link, tree) in enumerate(trees, start=1):
assert "下一篇文章" not in tree
res.append(f"## ({count})")
res.append(f"link: <{link}>")
for i, title in enumerate(tree.split("\n")):
if title == "": continue
res.append(f"[{title}]({link}#t{i})")
with open(f"{obj}/README.md", "w", encoding="utf8") as f:
f.write("\n\n".join(res))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lina_in_gitee/csdn-articles.git
git@gitee.com:lina_in_gitee/csdn-articles.git
lina_in_gitee
csdn-articles
CSDN-articles
master

搜索帮助