摘要: 软件开发目录规范 层次清晰得目录结构: 1.可读性高 2.可维护性高 1.Stackoverflow上大家对python目录结构得讨论: https://stackoverflow.com/questions/193161/what-is-the-best-project-structure-for 阅读全文
posted @ 2018-02-27 19:34 Alice的小屋 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 目录结构 作用:1.可读性高2.可维护性高 目录组织: luffy log conf core libs/modules docs README install python3 setup.py install setup.py bin/ luffy_server.py requirements.t 阅读全文
posted @ 2018-02-27 19:19 Alice的小屋 阅读(194) 评论(0) 推荐(0) 编辑
摘要: logging 模块 很多程序都有记录日志的需求 logging的日志可以分为 debug(), info(), warning(), error() and critical()5个级别 1.输出到屏幕上 import logging #输出到屏幕上 只显示 warning error criti 阅读全文
posted @ 2018-02-27 09:23 Alice的小屋 阅读(251) 评论(0) 推荐(0) 编辑
摘要: logging 模块 很多程序都有记录日志的需求 logging的日志可以分为 debug(), info(), warning(), error() and critical()5个级别 1.最简单用法: import logginglogging.warning("user [alex] att 阅读全文
posted @ 2018-02-27 09:13 Alice的小屋 阅读(222) 评论(0) 推荐(0) 编辑