-
-
Save zeffii/300430353ed5cbe2a103 to your computer and use it in GitHub Desktop.
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