嗨,谢谢你抽出时间来帮忙。在
我正在使用以下代码
#!/usr/bin/env python
# Sample script to show how to send SMS
import gammu
import sys
sm = gammu.StateMachine()
sm.ReadConfig()
sm.Init()
message = {
'Text': 'python-gammu testing message',
'SMSC': {'Location': 1},
'Number': '+584126555508',
}
# Actually send the message
sm.SendSMS(message)
它工作得很好,但是我怎样才能确保SendSMS函数真的发送了消息。。。在
例如:send,unsent作为SendSMS函数返回值的结果。在
感谢您提前回答。在
相关问题 更多 >
编程相关推荐