def fft_random(n):
for i in range(n):
x = random.normal(0, 0.1, 2000)
y = fft(x)
if(i%30 == 0):
process_percent = int(100 * float(i)/float(n))
current_task.update_state(state='PROGRESS',
meta={'process_percent': process_percent})
return random.random()
tasks.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录