From 9aa503125fd031934ac4b544e89c09a0ba907ac8 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 30 Sep 2019 13:30:22 +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, 2 insertions(+) diff --git a/get_new_user.py b/get_new_user.py index c2a3389..a4d85a7 100644 --- a/get_new_user.py +++ b/get_new_user.py @@ -116,6 +116,8 @@ class InitFirstAD(): if data: line = len(data) nums = int(line * ratio / 100) + if ratio != 100: + print(f"all={line} nums={nums}") if nums: return random.sample(data, nums) else: