def main():
    login()
    semester = Semester()
    messages = []
    for course in semester.courses:
        print(course.name)
        for message in course.messages:
            messages.append(message)

    messages.sort(key=lambda x: x.date, reverse=True)
    for m in messages:
        print((m.title,m.date,m.details.replace("\t\n ","")[:100])%">>\t%s_%s\n%s")
dataset/ETHPy150Open kehao95/thu_learn/messages.py/main/swapped operands of `%`