掌控版使用urequest.get()时报错
from mpython import *import micropython
import urequests
import network
import json
my_wifi = wifi()
my_wifi.connectWiFi("wfi账号","wifi密码")
if my_wifi.sta.isconnected():
print("Succeed!!!")
print(micropython.mem_info())
print((urequests.get("https://geoapi.qweather.com/v2/city/lookup?location=beijing&key=3d2ef4af5ef94d95aa9ceb9192b04158&number=1").json()))
else:
print("Failed!!!")报错:
Traceback (most recent call last):
File "main.py", line 22, in <module>
File "urequests.py", line 170, in get
File "urequests.py", line 145, in request
ValueError: need more than 2 values to unpack
这么久了我也没有找到方法解决这个问题,顶一下 解决了,从github上找到了一个micro python的urequests库把它拉下来改一下他的文件名和引用库就可以实现访问
GitHub链接 BuLatH 发表于 2021-7-16 15:04
解决了,从github上找到了一个micro python的urequests库把它拉下来改一下他的文件名和引用库就可以实现访 ...
你好,我老是遇到urequest库报错或则oserro:-的情况,可以向你讨教一下不
页:
[1]