下面是我的代码,其中包含一些mod,因为它包含密码等。但是当我运行这段代码时会出现错误(AttributeError:'module'对象没有属性'Curl')。我试着寻找这个并且找不到工作方法,所以我该如何解决这个问题呢?
#buy cloud hashing
cloudhash = input('Do you want to buy cloud hashing?: ')
print('You choose', cloudhash)
if cloudhash == "yes":
print("You chose to buy hashing power")
c = pycurl.Curl()
c.setopt(c.URL, 'https://www.eobot.com/api.aspx?id=45723&email=Joshman160@*******.com&password=**********&convertfrom=DOGE&amount=20.0&convertto=KHS')
c.perform()
else:
print("You Choose not to buy hashing power")