Created
April 10, 2017 14:05
-
-
Save Miserlou/4991ecaacad899d2c075315a85f665fc 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
class User(object): | |
name = None | |
age = None | |
def print_name(self): | |
print "Hi, I'm " + self.name + "!" | |
new_user = User() | |
new_user.name = "Jeff" | |
new_user.age = 19 | |
nodb.save(new_user) # True | |
jeff = nodb.load("Jeff") | |
jeff.print_name() # Hi, I'm Jeff! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment