Let's see how far I get this year.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

__init__.py 349B

12345678910111213
  1. DEBUG = False
  2. def debug(message, *args, **kwargs):
  3. global DEBUG
  4. if DEBUG:
  5. print(message, *args, **kwargs)
  6. def load_input(day):
  7. day = str(day) if day >= 10 else f"0{day}"
  8. filename = f"day{day}.input"
  9. with open(filename, "r") as file:
  10. input_list = [line.strip() for line in file.readlines()]
  11. return input_list