We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bddfc47 commit ff06a2cCopy full SHA for ff06a2c
2 files changed
code/README.md
@@ -37,6 +37,9 @@ ui:UI主题库
37
38
## 版本说明
39
40
+2024-12-19 v2.4
41
+1、天气网站从http变化为https;
42
+
43
2024-2-2 v2.3
44
1、增加'冻'汉字适配'冻雨'天气;
45
2、修复实时温度带小数位显示问题,实时温度改为四舍五入取整。
code/main.py
@@ -136,7 +136,7 @@ def weather_get(datetime):
136
137
try:
138
139
- myURL = urequest.urlopen("http://www.weather.com.cn/weather1d/"+city[1]+".shtml")
+ myURL = urequest.urlopen("https://www.weather.com.cn/weather1d/"+city[1]+".shtml")
140
text = myURL.read(39000+100*i).decode('utf-8') #抓取约前4W个字符,节省内存。
141
142
#获取当日天气、高低温
0 commit comments