diff --git a/inter/GetRandCode.py b/inter/GetRandCode.py index 647512b..5c19ae2 100644 --- a/inter/GetRandCode.py +++ b/inter/GetRandCode.py @@ -4,6 +4,11 @@ from PIL import Image from config.ticketConf import _get_yaml from damatuCode.ruokuai import RClient +try: + raw_input # Python 2 +except NameError: # Python 3 + raw_input = input + def getRandCode(is_auto_code, auto_code_type, result): """