Ref Codes I wrote before, several recognizers

Day2: python codes