python-shortcuts:使用Python创建Siri快捷方式

时间:2021-02-03 12:54:49
【文件属性】:
文件名称:python-shortcuts:使用Python创建Siri快捷方式
文件大小:92KB
文件格式:ZIP
更新时间:2021-02-03 12:54:49
python toml ios library shortcut WIP:python快捷方式 :green_apple: + :snake: = :red_heart: python-shortcuts是一个库,可使用您喜欢的文本编辑器在笔记本电脑上创建。 它使用表示快捷方式。 该库处于非常早期的开发状态(欢迎PR!),因此它不支持Shortcuts应用程序中的所有操作。 支持的Python版本: > = 3.6 。 为什么 我想将快捷方式转换为人类可读格式的文件。 :) 从该库下面的代码中可以创建有效的快捷方式: [[ action ]] type = " ask " question = " What is your name? " [[ action ]] type = " set_variable " name = " name " [[ action ]] type = " show_result " text = " Hello, {{name}}! " 或与Python相同: from shortcuts import Shortcut , actions sc = Shortcut () sc . actions

网友评论