标签:col cto style app return ret else point actor
def smooth_curve(points, factor = 0.9): smoothed_points = [] for point in points: if smoothed_points: previous = smoothed_points[-1] smoothed_points.append(previous * factor + point * (1 - factor)) else: smoothed_points.append(point) return smoothed_points
标签:col cto style app return ret else point actor
原文地址:https://www.cnblogs.com/wbloger/p/10217542.html