一覧へ戻る
crusat/python-zodiac-sign(新しいタブで開きます)
主要言語: Python
Zodiac Sign by date
- star 数
- 15
- watcher 数
- 2
- fork 数
- 3
- issue 数
- 1
- 最終更新
- 2021/01/02
主要言語: Python
Zodiac Sign by date
Getting the Zodiac sign by date.
Languages:
en_US, default)ru_RU)pt_BR, pt_PT) - Thanks to @guilhermecomumel, el_CY, el_GR) - Thanks to @hargikasde_DE) - Thanks to @pixelsoccupied$ pip install zodiac-sign
from zodiac_sign import get_zodiac_sign
from datetime import date
d = date(1988, 3, 6)
# only data param
print(get_zodiac_sign(d))
# two params - day and month, without year
print(get_zodiac_sign(6, 3))
from zodiac_sign import get_zodiac_sign
import locale
locale.setlocale(locale.LC_ALL, 'ru_RU')
print(get_zodiac_sign(6, 3))
# out "Рыбы"
locale.setlocale(locale.LC_ALL, 'en_US')
print(get_zodiac_sign(6, 3))
# out "Pisces"
# force language (without auto detect)
print(get_zodiac_sign(6, 3, language='ru_RU'))
https://github.com/crusat/python-zodiac-sign
MIT