推荐学习书目
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
simple2025
0D
V2EX  ›  Python

关于 Python invoke 的问题

  •  
  •   simple2025 · Feb 1, 2023 · 2597 views
    This topic created in 1222 days ago, the information mentioned may be changed or developed.

    第一,如何共用 invoke 呢?

    第二,invoke 太多,怎么分出来,好看一些呢,我现在的 invoke 文件 2K 多行了,现在都是复制来复制去的,哎

    5 replies    2023-02-03 08:55:27 +08:00
    noparking188
        1
    noparking188  
       Feb 1, 2023
    invoke 是啥老哥
    simple2025
        2
    simple2025  
    OP
       Feb 1, 2023
    @noparking188 python invoke 啊,类似 makefile 那种,只不过是 python 写的,可以更好的嵌入 python 代码
    noparking188
        3
    noparking188  
       Feb 1, 2023
    @chenqh #2 哦哦,感谢,我第一次听说这个,去看看
    vicalloy
        4
    vicalloy  
       Feb 2, 2023   ❤️ 1
    invoke 就是一个标准的 python 库,你按 python 标准库的方式管理就可以了。
    按照功能组织文件,按需 import 进去。
    公共的的 invoke 可以放到一个公共的库里,然后用 submodule 的方式引用。
    beeeeeeat
        5
    beeeeeeat  
       Feb 3, 2023 via iPhone
    PYTHONPATH?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2447 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
    ♥ Do have faith in what you're doing.