Last active
December 17, 2015 09:58
-
-
Save klanjabrik/5590908 to your computer and use it in GitHub Desktop.
Python: Calling method without threading
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
tampil = """{"data1":"Ini Data 1","data2":"Ini Data 2""" | |
class TestClass(): | |
def run(self): | |
tampil_class = """","data3":"Ini Data 3"}""" | |
return tampil_class | |
t = TestClass() | |
tampil_class = t.run() | |
tampil += tampil_class | |
print eval(tampil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment