?? 018-smsgateway.py
字號:
import messaging, inbox, e32PHONE_NUMBER = "+189823801102"nasty_words = ['Java', 'C++', 'Perl']def message_received(msg_id): box = inbox.Inbox() msg = box.content(msg_id) sender = box.address(msg_id) box.delete(msg_id) for word in nasty_words: msg = msg.replace(word, "XXX") messaging.sms_send(PHONE_NUMBER, msg) print "Message from %s forwarded to %s" %\ (sender, PHONE_NUMBER)box = inbox.Inbox()box.bind(message_received)print "Gateway activated"app_lock = e32.Ao_lock()app_lock.wait()
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -