Skip to content

Commit ff06a2c

Browse files
committed
修改天气网站链接
1 parent bddfc47 commit ff06a2c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

code/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ ui:UI主题库
3737

3838
## 版本说明
3939

40+
2024-12-19 v2.4
41+
1、天气网站从http变化为https;
42+
4043
2024-2-2 v2.3
4144
1、增加'冻'汉字适配'冻雨'天气;
4245
2、修复实时温度带小数位显示问题,实时温度改为四舍五入取整。

code/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def weather_get(datetime):
136136

137137
try:
138138

139-
myURL = urequest.urlopen("http://www.weather.com.cn/weather1d/"+city[1]+".shtml")
139+
myURL = urequest.urlopen("https://www.weather.com.cn/weather1d/"+city[1]+".shtml")
140140
text = myURL.read(39000+100*i).decode('utf-8') #抓取约前4W个字符,节省内存。
141141

142142
#获取当日天气、高低温

0 commit comments

Comments
 (0)