2018年11月13日

python @classmethod 和 @staticmethod的区别

摘要: @classmethod: 和 @staticmethod: 两种方式 都可以通过类直接调用, 当然也都可以 通过 实例进行调用 区别:@classmethod 可以调用本身类里的其他方法,而 @staticmethod不可以调用类里的其他方法 普通方法则需要 使用 实例 进行 调用 该方法 而d( 阅读全文

posted @ 2018-11-13 20:32 游荡的鱼 阅读(148) 评论(0) 推荐(0) 编辑

python __init__.py

摘要: 模块初始化文件 在此文件中导入 其他要使用的模块,则该文件夹中的其他模块则不用import 导入添加环境: import sys sys.path.append("/test/") print(sys.path) 打印环境变量 阅读全文

posted @ 2018-11-13 09:41 游荡的鱼 阅读(123) 评论(0) 推荐(0) 编辑

jmeter

摘要: jmeter 安装 相应时间图形: 3 Basic Graphs 安装 线程检测图形插件: Custom Thread Groups 安装服务器检测cpu/IO等: PerfMon 代理agent: https://github.com/undera/perfmon agent/blob/maste 阅读全文

posted @ 2018-11-13 08:51 游荡的鱼 阅读(83) 评论(0) 推荐(0) 编辑

导航