📄 delay_plugin.py
字号:
plugin_name = "Delay"import utilimport timedef create(callback): n = util.GetInput(question="seconds:",default="2") if not n: return return delay(n)class delay: input_description = [('input', object)] output_description = [('output', None)] def __init__(self,n): self.n = n def configure(self): n = util.GetInput(question="seconds:",default=self.n) if not n: return self.n = n return True def run(self,input): time.sleep(int(self.n)) return {'output': input}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -