[Python] How to generate month names as list in Python? [duplicate]

Discussão em 'Python' iniciado por Stack, Agosto 4, 2025.

  1. Stack

    Stack Membro Participativo

    This outputs undesired formats:

    import calendar
    for i in range(1, 13):
    print(calendar.month_name)


    Output:

    <calendar._localized_month object at 0x7f901a7013d0>
    <calendar._localized_month object at 0x7f901a7013d0>
    ...

    Continue reading...

Compartilhe esta Página