modified template
This commit is contained in:
parent
68bff21f4d
commit
44723a1ef1
|
|
@ -1,13 +1,11 @@
|
|||
import sys
|
||||
import copy
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
DEBUG = False
|
||||
debug_padding = 40
|
||||
|
||||
def debug_print(printname, *args):
|
||||
if not DEBUG:
|
||||
return
|
||||
if DEBUG:
|
||||
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
import sys
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
DEBUG = True
|
||||
padding=24
|
||||
debug_padding = 24
|
||||
|
||||
def debug_print(printname, *args):
|
||||
if not DEBUG:
|
||||
return
|
||||
print(f"{'DEBUG::'+printname:<{padding}}", *args)
|
||||
pass
|
||||
if DEBUG:
|
||||
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
||||
|
||||
|
||||
print("Parsing Input:")
|
||||
print("")
|
||||
print("===================================\n");
|
||||
|
||||
FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt"
|
||||
f = open(FILENAME, "r")
|
||||
|
||||
|
|
@ -20,12 +22,28 @@ for line in f.readlines():
|
|||
debug_print("input", line)
|
||||
|
||||
|
||||
|
||||
|
||||
print("")
|
||||
print(" Proccessing:")
|
||||
print("===================================\n");
|
||||
# Insert Processing Code
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
print("")
|
||||
print("Processed:")
|
||||
print(" Calculate Answer:")
|
||||
print("===================================\n");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
print("")
|
||||
print(" Answer:")
|
||||
print("===================================\n");
|
||||
print("Answer: XXX");
|
||||
|
|
@ -1,16 +1,18 @@
|
|||
import sys
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
DEBUG = True
|
||||
padding=24
|
||||
debug_padding = 24
|
||||
|
||||
def debug_print(printname, *args):
|
||||
if not DEBUG:
|
||||
return
|
||||
print(f"{'DEBUG::'+printname:<{padding}}", *args)
|
||||
pass
|
||||
if DEBUG:
|
||||
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
||||
|
||||
|
||||
print("Parsing Input:")
|
||||
print("")
|
||||
print("===================================\n");
|
||||
|
||||
FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt"
|
||||
f = open(FILENAME, "r")
|
||||
|
||||
|
|
@ -20,12 +22,28 @@ for line in f.readlines():
|
|||
debug_print("input", line)
|
||||
|
||||
|
||||
|
||||
|
||||
print("")
|
||||
print(" Proccessing:")
|
||||
print("===================================\n");
|
||||
# Insert Processing Code
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
print("")
|
||||
print("Processed:")
|
||||
print(" Calculate Answer:")
|
||||
print("===================================\n");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
print("")
|
||||
print(" Answer:")
|
||||
print("===================================\n");
|
||||
print("Answer: XXX");
|
||||
Loading…
Reference in New Issue