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 datetime import datetime | |
def ConsoleWrite(messageType, message, variable = None): | |
print datetime.now().strftime('%Y-%m-%d %H:%M:%S'), | |
print "[" + messageType + "]\t", | |
if variable: | |
print type(variable).__name__, ":", message | |
print(variable) | |
else: |
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
import sys | |
import math | |
import functools | |
MU = 0 | |
MT = 1 | |
OU = 2 | |
OT = 3 | |
CA = 4 |