@@ -0,0 +1,252 @@
+def log(infoType, info):%0A    '''%E8%AE%B0%E5%BD%95%E4%BB%BB%E4%BD%95%E4%BF%A1%E6%81%AF%E6%88%96%E9%94%99%E8%AF%AF%E3%80%82%5CninfoType%E5%8F%82%E6%95%B0%E5%8F%AA%E6%94%AF%E6%8C%81INFO%E6%88%96ERROR%E3%80%82'''%0A    if infoType not in ('INFO', 'ERROR'):%0A        log('ERROR', 'Unknown Info Type -%3E %7B%7D (%7B%7D)'.format(infoType, info))%0A        return -1%0A    print('%5B%7B%7D%5D %7B%7D'.format(infoType, info))%0A

Create core.py