|
|
|
6个月前 【组长】 阿不 :
刚才仔细看了一下,我之前的使用是有问题的,这里的时间只有到日期。而那么Year,Month,Day属性只是已经解析好的年,月,日值,不用再处理的!使用方法应该如下:
Weather weather = e.InPacket.Weathers[0];
WL("成功读取天气预报,地区:{0} {1} 日期:{2}年{3}月{4}日 最高温度:{5} 最低温度:{6} 风向:{7} 描述:{8}", e.InPacket.Province, e.InPacket.City, weather.Year,
weather.Month, weather.Day, weather.HighTemperature, weather.LowTemperature, weather.Wind, weather.ShortDesc);
8楼
|