AIM Python Library Master (3) Workalendar

[Description de la bibliothèque]

Vous pouvez voir les vacances de différents pays.

【programme】

Faisons des vacances japonaises en 2016.

workalendar.py


# -*- coding: utf-8 -*-

from workalendar.asia import Japan

cal = Japan()

for i in xrange(len(cal.holidays(2016))):
    print cal.holidays(2016)[i]

【résultat】

(datetime.date(2016, 1, 1), 'New year') (datetime.date(2016, 1, 11), 'Coming of Age Day') (datetime.date(2016, 2, 11), 'Foundation Day') (datetime.date(2016, 3, 20), 'Vernal Equinox Day') (datetime.date(2016, 4, 29), 'Showa Day') (datetime.date(2016, 5, 3), 'Constitution Memorial Day') (datetime.date(2016, 5, 4), 'Greenery Day') (datetime.date(2016, 5, 5), "Children's Day") (datetime.date(2016, 7, 18), 'Marine Day') (datetime.date(2016, 9, 19), 'Respect-for-the-Aged Day') (datetime.date(2016, 9, 22), 'Autumnal Equinox Day') (datetime.date(2016, 10, 10), 'Health and Sports Day') (datetime.date(2016, 11, 3), 'Culture Day') (datetime.date(2016, 11, 23), 'Labour Thanksgiving Day') (datetime.date(2016, 12, 23), "The Emperor's Birthday")

Le 21 mars était un jour férié de transfert cette année, mais il n'est pas inclus dans les résultats (> _ <)

[Impression]

Je veux que vous souteniez l'acquisition de vacances dans tous les pays.

[Site de référence]

workalendar  github

Recommended Posts

AIM Python Library Master (3) Workalendar
Aim Python Library Master (48) Autopep8
Aim Python Library Master (36) json2html
Aim Python Library Master (49) psidialogs
Aim Python Library Master (26) easyxml
Aim python library master (29) table_printer
Espaces de noms Aim Python Library Master (55)
AIM Python Library Master (46) BrowserPlus
Aim Python Library Master (30) Chronyk
Aim Python Library Master (42) Speedrecorder
Aim Python Library Master (37) Slimurl
Aim Python Library Master (44) pynetviz
Aim Python Library Master (8) Rolex
Aim Python Library Master (52) Marktime
Aim Python Library Master (7) Numparser
Aim Python Library Master (21) hy
Viser les requêtes du maître de bibliothèque python (18)
Aim Python Library Master (13) Easydev
Aim Python Library Master (20) Pyyaml
Aim Python Library Master (34) simultané
Viser la segmentation de mots du maître de la bibliothèque python
Aim Python Library Master (43) cpmoptimize
Aim Python Library Master (68) pazudorasolver
Aim Python Library Master (58) Faker
Aim Python Library Master (11) nlist
Aimez le maître de la bibliothèque python (38) beautiful_print
Aim Python Library Master (65) Geopy
Aim Python Library Master (2) Vincenty
Journal de bord Aim Python Library Master (59)
Aim Python Library Master (51) Pyautogui
Aim Python Library Master (10) Timeit
Aim Python Library Master (0) Liens
Aim Python Library Master (66) youtube-dl
Aim Python Library Master (53) psutil
Aim Python Library Master (22) HTMltag
Aim Python Library Master (67) httpie
Aim Python Library Master (45) xlsxwriter
Aim Python Library Master (9) WebHelpers
Aim Python Library Master (32) SQL
Aim Python Library Master (60) Colourettu
Viser maître de la bibliothèque python (64) pretty_cron
Aim Python Library Master (56) colorthief
Aim Python Library Master (61) recherche imbriquée
Aim Python Library Master (17) Rangeparser
Aim Python Library Master (47) Deckor
Aim Python Library Master (25) Orderset
Viser le maître de la bibliothèque python (62)
Aim Python Library Master (12) Excel
Aim Python Library Master (24) combi
Aim Python Library Master (63) EasyGui
Aim Python Library Master (19) Riemann
Aim Python Library Master (39) Goless
Aim Python Library Master (54) tqdm
Aim Python Library Master (16) byteplay
Aim Python Library Master (23) memory_utils
AIM Python Library Master (27) Benchit
Visez le maître de la bibliothèque python (35) pywildcard
Aim Python Library Master (14) Pyknon
Aim Python Library Master (15) Brute
Aim Python Library Master (50) xlwings
Aim Python Library Master (31) Adipy