Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Positionクラスがあり、2 つの属性LatとLon.
Position
Lat
Lon
プロトコルを実装することにより、次の APIiteratorが必要です (ただし、いくつかのグーグルは私をさらに混乱させました):
iterator
pos = Position(30, 50) print pos.Latitude > 30 print pos.Longitude > 50 for coord in pos: print coord > 30 > 50 print list(pos) > [30, 50]