From e06c38f05cfa392da3bbb7b58e0e9f5c2b3f955a Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 30 Sep 2019 12:01:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E9=9B=86=E6=96=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=20=E6=B7=BB=E5=8A=A0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=AF=94=E4=BE=8B=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get_new_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_new_user.py b/get_new_user.py index a7d522b..16cd5f0 100644 --- a/get_new_user.py +++ b/get_new_user.py @@ -116,7 +116,7 @@ class InitFirstAD(): if data: pdb.set_trace() line = len(data) - nums = int(line * ratio) + nums = int(line * ratio / 100) if nums: return random.sample(data, nums) else: