Loading

摘要: 文档:https://loguru.readthedocs.io/en/stable/overview.html#installation pip install loguru ##使用 ###基本使用 ##终端日志 from loguru import logger logger.debug("这 阅读全文
posted @ 2020-03-21 16:24 Lust4Life 阅读(1578) 评论(0) 推荐(0) 编辑
摘要: 官网文档 https://docs.python.org/zh-cn/3/library/argparse.html#module-argparse https://www.jianshu.com/p/fef2d215b91d 基本使用流程 #1创建解析器 #ArgumentParser 对象包含将 阅读全文
posted @ 2020-03-21 15:37 Lust4Life 阅读(277) 评论(0) 推荐(0) 编辑
摘要: hasattr(object, name) 判断一个对象里面是否有name属性或者name方法,返回BOOL值,有name特性返回True, 否则返回False。 getattr(object, name[,default]) 获取对象object的属性或者方法,如果存在打印出来,如果不存在,打印出 阅读全文
posted @ 2020-03-21 11:55 Lust4Life 阅读(351) 评论(0) 推荐(0) 编辑