â– Post-processing is useful for shaping the solution after it has been generated.
â– Example is post_main.nurse3.
â– Checks “Python Post Operation”. (Also checks “Use Language Constraints”)
â– def post_main(): should be written as main.
def post_main():
print("Hello Post Main world!")
print("\t ",end=" ")
for day in Sun:#
print(daydef[day],end=' ')
print(end="\n")
for person in A_Member_in_All:
print(staffdef[person], end=' ')#
for day in Sun:
print(shift_solution[person][day],end=' ')#
print(end="\n")
â– Solutions can be taken out as shift_solution,task_solution.
â– The processed source content can be viewed as “Python Post Entire Source”.
â– Post_main is a separate process from the constraint processing system.