"1110110" : 2,
"0000011" : 1,
"1011111" : 0
+
}
w = r[2] - r[0]
#Check where the boxes are
+ """
if (filled in d) == False:
img = Image.new("RGB", (r[2]-r[0], r[3]-r[1]), "white")
draw = ImageDraw.Draw(img)
draw.rectangle(box, fill=None, outline="blue")
img.show()
#return 0
+ """
if filled in d:
return d[filled]
print("?")
sys.exit(1)
- print(str(r[0]) + "." + str(r[1]) + str(r[2]) + "e-" + str(r[3]))
+ if (len(r) == 4):
+ print(str(r[0]) + "." + str(r[1]) + str(r[2]) + "e-" + str(r[3]))
+ elif (len(r) == 3):
+ print(str(r[0]) + "." + str(r[1]) + "e-" + str(r[2]))
+ else:
+ print("#?")
sys.exit(0)