python高性能编程——案例1
CPU密集型函数代码示例:
import time
import functools
x1,x2,y1,y2 = -1.8,1.8,-1.8,1.8
c_real,c_imag = -0.62772,-.42193
def calc_pure_python(desired_width,max_iterations):
x_step = (float(x2-x1)/float(desired_width))
y_step = (float(y1-y2)/float(desired_widt
原创
2021-07-08 20:36:08 ·
180 阅读 ·
0 评论