From da481efffc7cda402b50350e1d1cfdfe0ac531c0 Mon Sep 17 00:00:00 2001 From: AdminWhaleFall Date: Wed, 27 Apr 2022 01:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0=E8=85=BE?= =?UTF-8?q?=E8=AE=AF=E4=BA=91=E5=87=BD=E6=95=B0=E6=89=A7=E8=A1=8C=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 index.py diff --git a/index.py b/index.py new file mode 100644 index 0000000..f3d81aa --- /dev/null +++ b/index.py @@ -0,0 +1,13 @@ +# -*- coding: utf8 -*- +# 腾讯云函数执行入口 + +import os +from pathlib import Path +path = Path(__file__).parent.absolute() + +def main_handler(event, context): + print("云函数执行中.....") + print(f"当前目录:{path}") + os.chdir(path) + # 自定义命令 + os.system("python3 smsboom.py -p 19820294268 -t 16") \ No newline at end of file