我正在使用 twilio-python 并按照本教程进行操作: http ://readthedocs.org/docs/twilio-python/en/latest/usage/twiml.html?highlight=nest
但是当我尝试这个时:
from twilio import twiml
r = twiml.Response()
r.say("hello")
with r.gather(finishOnKey=4) as g:
g.say("world")
print str(r)
但我明白了:
AttributeError: __exit__
任何想法?