看了一下django,sqlalchemy,web.py等项目的结构,大致了解了一般python项目的结构。假设你的项目名叫hello

/hello

      -mypackage

             -__init__.py

             -...(your code)

      -test

              -__init__.py

             -runtests.py

             -...(your test code)

      -setup.py

      -README

      -LICENSE

如果要运行test代码,就使用

python test/runtests.py

相关文章:

  • 2022-01-07
  • 2022-01-07
  • 2021-09-21
  • 2021-09-21
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-02-13
  • 2021-11-29
  • 2021-07-14
  • 2021-11-29
  • 2021-07-18
  • 2022-01-07
相关资源
相似解决方案