一般python项目的结构

看了一下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

你可能感兴趣的:(python)