PCI_Code:《集体智慧编程》(Programming Collective Intelligence)修改版本源代码 源码
PCI_代码 《集体智慧编程》(Programming Collective Intelligence)源代码 ## fix bug ###恢复原书过期API 1.将原书第9章:SVN Yahoo API替换方法为bingMaps API: ://dev.virtualearth.net/ def getlocation(address): if address in loc_cache: return loc_cache[address] url = 'http://dev.virtualearth.net/REST/v1/Locations?CountryRegion=US&addressLine=%s&maxResults=1&key=%s' % ( quote_plus(address), bingkey) print url w
用户评论