sync with O'Reilly Atlas
This commit is contained in:
1 parent
f0f160844d
commit
23e78eeb82
64 files changed
+2087
-124
No files matched your search
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
``Coordinate``: a simple class with a custom ``__str__``::
|
||||
|
||||
>>> moscow = Coordinate(55.756, 37.617)
|
||||
>>> print(moscow) # doctest:+ELLIPSIS
|
||||
<coordinates.Coordinate object at 0x...>
|
||||
"""
|
||||
|
||||
# tag::COORDINATE[]
|
||||
class Coordinate:
|
||||
|
||||
def __init__(self, lat, lon):
|
||||
self.lat = lat
|
||||
self.lon = lon
|
||||
|
||||
# end::COORDINATE[]
|
||||
Reference in new issue
Block a user