#!/usr/bin/env python
# -*- coding:utf-8 -*-
import random
sample_ra = 0.04
random_scope = int(1/sample_ra)
rand = random.randint(1,int(4/sample_ra))
if rand > (2*random_scope + 4) or rand < (2*random_scope):
continue
样本抽样
最新推荐文章于 2022-12-03 13:18:23 发布