我有问题,我需要帮助。我想PushBullet
在 python 中使用,但出现错误。
这是我的代码:
from pushbullet import PushBullet
from pushbullet import device
apik="myapikey"
pb=PushBullet(apik)
de=pb.devices[0]
success, push = de.push_note("adsadasd","asdasdasd asd asd")
我收到此错误:
Traceback (most recent call last):
File "gggg.py", line 6, in <module>
de = pb.devices[0]
IndexError: list index out of range
我怎么解决这个问题?