Created
July 17, 2018 16:40
-
-
Save h3nryza/9a2f5be619aee5acd38962ce90ff8fc4 to your computer and use it in GitHub Desktop.
Simple python template for myself
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
try: | |
import platform_specific_module | |
except ImportError: | |
platform_specific_module = None | |
class NameOfClass(object): | |
__doc__ = """ Class information """ | |
STATICVAR = None | |
def __init(self): | |
glabalVar = None | |
def main(self, var1=None,var2=None): | |
if var1 != None: | |
"Do If statement" | |
else: | |
"Do Else Statement" | |
return self.submethod("test") | |
def submethod(test): | |
return(test) | |
if __name__ == "__main__": | |
"Do something when not imported as module" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment