Changes between Version 7 and Version 8 of Python


Ignore:
Timestamp:
06/16/06 11:37:02 (18 years ago)
Author:
atzm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python

    v7 v8  
    9595 
    9696 * dict として使える HostIP オブジェクト. 
     97 
     98{{{ 
     99#!python 
     100>>> test = HostIP('210.156.41.55') 
     101>>> for k, v in test.items(): 
     102...     print '%s: %s' % (k, v) 
     103...  
     104city: Morioka 
     105guessed: true 
     106url: http://api.hostip.info/rough.php?position=true&ip=210.156.41.55 
     107googlemaps: http://maps.google.com/?q=39.7N+141.15E(210.156.41.55) 
     108latitude: 39.7 
     109country: JAPAN 
     110ipaddr: 210.156.41.55 
     111country code: JP 
     112longitude: 141.15 
     113}}}