简体   繁体   English

将我自己的函数导入 Azure 计时器触发器

[英]Import My Own Function into Azure Timer Trigger

Picture of Code代码图片

If you look at my code you can see I am trying to use my created function, send(message), to send a message.如果您查看我的代码,您会发现我正在尝试使用我创建的函数 send(message) 来发送消息。 However, I am unsure how to import my file, which you can see on the left, SMSpy.但是,我不确定如何导入我的文件,您可以在左侧看到,SMSpy。 Can anyone tell me how I can properly import my file, Thanks!谁能告诉我如何正确导入我的文件,谢谢!

If SMSpy has a class use如果 SMSpy 有一个类使用

One time call: Call it once with an instant object created.一次调用:使用创建的即时对象调用一次。

import SMSpy
SMSPy.<classname>().send()

Multiple Calls: Create an object and call多次调用:创建一个对象并调用

import SMSpy
Obj = SMSPy.<classname>()
Obj.send()

If no class:如果没有课:

import SMSpy
SMSpy.send()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python 中的 Azure Function App 计时器触发器不起作用 - Azure Function App timer trigger in Python not working Azure 函数 (Python) - 为计时器触发器设置时区 - Azure Function (Python) - Set Timezone For Timer Trigger http 和 Azure Function 中的定时器触发器 - Both http and timer trigger in Azure Function 使用 Python 的 Azure 定时器触发函数 - Azure timer trigger function using Python 使用python的azure函数使用定时器触发器触发HttpTrigger函数 - Trigger the HttpTrigger function using Timer trigger using azure function for python 当我在 __init_.py 中添加脚本时,Azure function 计时器触发器失败 - Azure function timer trigger fails when I add my script inside __init_.py Azure 函数应用计时器触发器与 Azure 门户中的手动触发器 - Azure function app timer trigger vs. manual trigger in Azure portal 为什么我的 python 定时器触发器 function 没有在正确的时间运行? - Why is my python timer trigger function not running at the correct time? Azure Function 当我在门户中打开 function 并且 (RunOnStartup = false) 时,计时器触发器正在运行 - Azure Function Timer Trigger is running when I open function in portal and (RunOnStartup = false) Python3无法从我自己的模块导入函数 - Python3 Cannot import function from my own module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM