Python函数性能测试

    xiaoxiao2025-03-04  19

    import profile A = 5 def param_test(): B = 5 res = 0 for i in range(100000000): res = B + i return res if __name__=='__main__': profile.run('param_test()')

    profile could be used to check the efficiency of function call. 

    转载请注明原文地址: https://ju.6miu.com/read-1296879.html
    最新回复(0)