0

我正在制作一个类似人工智能/虚拟助手的 alexa,并且已经添加了发送文本的功能,但不知道如何打电话。我发现了一篇关于如何在收到通知时发出通知的帖子,但实际上没有发送通知的能力。这在qpython中甚至可能吗?谢谢

示例代码:

response = input("enter command: ")   
if response[1] == "call":  
   *call function* (response[2])

结果:

enter command: call 123456789    
calling 123456789
4

1 回答 1

1

您可以使用此代码拨打电话。插入带有国家代码的电话号码作为响应的输入

from androidhelper import Android
droid = Android()
response=input ("Enter phone number here:")
droid.phoneCallNumber (response)
于 2018-02-04T16:42:29.513 回答