代码之家  ›  专栏  ›  技术社区  ›  kopew

GitHub的电报机器人项目

  •  0
  • kopew  · 技术社区  · 2 年前

    我在做一个数学机器人。GitHub中的文件树:

    /mathbot
      /funcionalidades
        __init__.py
        eq2grau.py (imported into config.py)
        primos.py  (imported into config.py)
        status.py  (still no use)
        trigonometria.py  (imported into config.py)
     README.md  (I will fill in later)
     bot.py 
     config.py  (imported into bot.py)
     requirements.txt
    

    我再放一份文件好吗 README.md requirements.txt 让它看起来更好还是已经很好了?

    1 回复  |  直到 2 年前
        1
  •  1
  •   Tin Stribor Sohn    2 年前

    如果在跑步之后 pip install -r requirements.txt 还有跑步 python bot.py 一切运行良好,并在您的自述中描述,它应该是好的。

    此外,对于公共回购,有时创建Dockerfile很有用,让其他人能够以集装箱服务的形式启动您的程序。

    Here is a video tutorial for creating a Dockerfile for a Python program

    此外,您还可以在Github自述文件中添加动态统计信息,使其看起来更专业:

    Check out this Repository