- 博客(3)
- 问答 (1)
- 收藏
- 关注
原创 python计算PESQ
pip install pesqfrom scipy.io import wavfilefrom pesq import pesqrate, ref = wavfile.read("path_to_reference")rate, deg = wavfile.read("path_to_estimate_file")print(pesq(rate, ref, deg, 'wb')) #宽带print(pesq(rate, ref, deg, 'nb')) #窄带
2022-01-04 13:43:16 4127 4
原创 重写__init__:参数化unittest只开一次浏览器,并生成HTML报告
本教程是在上一篇基础上的拓展。https://blog.csdn.net/weixin_42801714/article/details/116166754使用@classmethod装饰器能够实现不同testcase运行时只开一次浏览器,但是对于整个class参数化的情况,依然会在每次传入一次case时打开一次浏览器。重写__init__可以实现在程序运行全过程只打开一次浏览器。具体实现代码如下:# -*- coding: utf-8 -*-# @FileName: config.pyfro
2021-04-27 13:34:32 251
原创 同时实现:unittest参数化parameterized+ selenium只开一次浏览器 + 生成HTML报告
针对不同caseimport unittestimport HTMLTestReportENif __name__ == '__main__': discover = unittest.defaultTestLoader.discover(start_dir='./', pattern="test_all.py") fp = open('./result/TestReport_all.html', 'wb') runner = HTMLTestReportEN.HTMLT
2021-04-27 10:46:28 208 1
空空如也
matlab gui里,如何在一个坐标轴上显示多幅图片
2019-09-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人