From 95bc677472bc0a8f8aaaa8a77c730a1ca405b0ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Sat, 16 Jul 2022 15:02:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/system/tasks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/system/tasks.py b/apps/system/tasks.py index 69bd0984..17b1f2c0 100755 --- a/apps/system/tasks.py +++ b/apps/system/tasks.py @@ -7,6 +7,5 @@ from django.core.mail import send_mail @shared_task(base=CustomTask) -def show(): - x = randint(0, 5) - print(40/x) +def show(x=1): + return 40/x