Created
May 8, 2014 18:38
-
-
Save anonymous/4a8f4dc220d8a3c677d5 to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import Structure, c_float | |
class Point(Structure): | |
_fields_ = [("x", c_float), ("y", c_float)] | |
def __repr__(self): | |
return str(self.x) + ", " + str(self.y) | |
a = Point(30.0, 40.0) | |
print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment