import way2sms
import requests
q=way2sms.sms('Arjun','xyz')
q.send(9418403783,'Yo their I am arjun')
n=q.msgSentToday()
q.logout()
当我运行这个命令时,我得到了以下错误。,我已经安装了所有必需的模块,但遇到了一个错误。在
Traceback (most recent call last): File "C:/Users/my dell/AppData/Local/Programs/Python/Python36- 32/records/smssend.py", line 4, in q=way2sms.sms('Arjun','M9329G') File "C:\Users\my dell\AppData\Local\Programs\Python\Python36- 32\lib\way2sms.py", line 17, in init self.s=requests.Session() # Session because we want to maintain the cookies AttributeError: module 'requests' has no attribute 'Session'
发送短信工作正常。试试这个。在
你可以从他们的网站上使用way2sms的官方API。它是一个100%的免费测试密钥工作解决方案。有关详细信息,请参阅我的回答- Sending SMS using Python via way2sms
相关问题 更多 >
编程相关推荐