I'm trying to make it where my code gives off a Green background on cell when it is "Present" and a Red background on cell if it is "Absent". Here is my code.
ws1.cell(column=1, row=t, value="%s" % blue_student_list)
if (student_check(i)):
ws1.cell(column=2, row=t, value="%s" % "Present")
else:
ws1.cell(column=2, row=t, value="%s" % "Absent")
This code works flawlessly, I'm just wondering how I can add in the background color behind the cell.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…