Skip to content

Commit c7f2b1b

Browse files
committed
bug fixed
1 parent 3a0374d commit c7f2b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WeatherMonitor/weather_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_weather(key):
5454
temprature_content = '温度注意:明日最低气温为' + tomorow_tmp_min + '°C!' + '\n'
5555
if int(current_month) > 4 and int(current_month) < 9:
5656
print('当前是%s月%s日' % (current_month, time.strftime("%d", time.localtime())))
57-
if ((int(tomorow_tmp_max) - int(today_tmp_max)) >= 5) or (int(tomorow_tmp_max >= 30)):
57+
if ((int(tomorow_tmp_max) - int(today_tmp_max)) >= 5) or (int(tomorow_tmp_max) >= 30):
5858
temprature_content = '温度注意:明日最高气温为' + tomorow_tmp_max + '°C!' + '\n'
5959

6060
return weather_content + air_content + temprature_content

0 commit comments

Comments
 (0)