2020年3月10日

python对文件或系统的操作

摘要: ```pythonimport sysimport osprint(os.listdir()) # 当前目录下所有文件的列表print(__file__) # 当前文件全路径print(__name__) # 当前函数名,没有则为__main__print(os.path.basename(__file__)) # 当前文件名print(sys._getframe().f_lineno) ... 阅读全文

posted @ 2020-03-10 18:47 ixuer 阅读(159) 评论(0) 推荐(0) 编辑

MySQL相关参数配置及性能优化

摘要: MySQL及其优化 数据库相关概念 系统吞吐量: 一个系统的吞度量(承压能力)与request对CPU的消耗、外部接口、IO等等紧密关联。单个reqeust 对CPU消耗越高,外部系统接口、IO影响速度越慢,系统吞吐能力越低,反之越高。 系统吞吐量几个重要参数:QPS(TPS)、并发数、响应时间(平 阅读全文

posted @ 2020-03-10 00:02 ixuer 阅读(900) 评论(0) 推荐(0) 编辑

导航