V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
lenqu
V2EX  ›  Python

Python 模版文件库

  •  
  •   lenqu · 2020-06-28 22:33:25 +08:00 · 1351 次点击
    这是一个创建于 1423 天前的主题,其中的信息可能已经有所发展或是发生改变。

    有没有更具 python 一个样板文件生成对应 python 文件然后运行的库

    5 条回复    2020-06-30 11:16:02 +08:00
    darer
        1
    darer  
       2020-06-28 22:38:48 +08:00
    试试 jinja2?
    lenqu
        2
    lenqu  
    OP
       2020-06-28 22:43:41 +08:00
    @darer 成,我去看一下
    l1xnan
        3
    l1xnan  
       2020-06-28 23:14:06 +08:00 via Android
    Python 字符串模板,一个函数的事
    no1xsyzy
        4
    no1xsyzy  
       2020-06-29 10:08:34 +08:00
    还是那句不要字符串处理代码,必出错
    MacroPy 看着挺好的,不过我没用过。
    lenqu
        5
    lenqu  
    OP
       2020-06-30 11:16:02 +08:00
    @l1xnan @no1xsyzy 成,太谢谢了,我去研究一下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4770 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:55 · PVG 15:55 · LAX 00:55 · JFK 03:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.