天气预报接口api(中国天气网)中国天气weather.comhttp://m.weather.com.cn/data/101110101.html(六天预报)http://www.weather.com.cn/data/sk/101110101.html(实时天气信息)其中101110101是城市...
Google Weather API
仅仅支持美国地区使用邮政编码进行查询,比如:http://www.google.com/ig/api?hl=zh-cn&weather=94043(94043
为 山景城, 美国加州 的邮政编码)而除了美国以外的地区须要使用经纬度坐标作为參数才干运行 Goo.....
/// ///
http://www.weather.com.cn/data/sk/101280601.html ///
{"weatherinfo":{"city":"深圳","cityid":"101280601","temp":"32","WD":"西南风","WS":"4级...
分类:
Web程序 时间:
2014-06-01 23:55:55
阅读次数:
809
点击Open
file导入arff格式的数据,这里我导入weka内置的weather.numeric.arff数据集查看preprocess右边的三个按钮,分别是分类、聚类、关联分析,选择你需要使用的功能这里我选择分类,点击choose按钮选择要使用的分类方法这里选择j48,一种决策树算法,再点击s...
分类:
其他好文 时间:
2014-05-29 22:57:28
阅读次数:
462
观察者模式定义:定义了对象之间的一对多依赖,这样一来,当一个对象改变状态时,它的所有依赖者都会收到通知并自动更新。
简单定义:让对象能够在状态改变时被通知。
OO原则:
为了交互对象之间的松耦合设计而努力。
以书中的WeatherStation为例:
Subject.java(定义接口)
package headfirst.observer.weather;
pu...
分类:
其他好文 时间:
2014-05-23 01:54:21
阅读次数:
337
[objc]viewplaincopyprint?在CODE上查看代码片派生到我的代码片
<precode_snippet_id="346208"snippet_file_name="blog_20140515_1_2220869"name="code"class="cpp">-(NSString*)hmacsha1:(NSString*)textkey:(NSString*)secret{
NSData*secretData=[secretdataUsingEnco..
分类:
移动开发 时间:
2014-05-20 21:39:19
阅读次数:
298
NSString *pattern = @"(?).*?(?=)";
2.
3. NSString *pattern1 = @"";
4.
5. NSURL *URL = [NSURL URLWithString:@"http://www.weather.com.cn/weather/101010100.shtml"];
6. NSString *string = [NSStri...
分类:
移动开发 时间:
2014-05-15 15:12:23
阅读次数:
265
google提供了天气的api,以广州天气为例,地址为:
http://api.openweathermap.org/data/2.5/weather?q=guangzhou
返回的结果为:
{
"coord": {
"lon": 113.25,
"lat": 23.12
},
"sys": {
"m...
先从中国天气网得到数据('http://www.weather.com.cn/data/cityinfo/'+城市编码),每个城市都有各自的编码,如何得到用户所在地的城市编码呢?用一个网页就是专门干这个的!http://61.4.185.48:81/g/...
分类:
编程语言 时间:
2014-05-04 00:27:18
阅读次数:
494
JsonTools
package com.example.weather_json.tools;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import co...
分类:
Web程序 时间:
2014-04-29 13:37:21
阅读次数:
1039