Download miniconda3/share/doc/gettext/examples/hello-python/hello.py.in from jasonfan/devboxbackup: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/datasets/jasonfan/devboxbackup/resolve/main/miniconda3/share/doc/gettext/examples/hello-python/hello.py.in
- Command line
-
hf download hf://datasets/jasonfan/devboxbackup/miniconda3/share/doc/gettext/examples/hello-python/hello.py.in
-
curl -L -o hello.py.in https://huggingface.co/datasets/jasonfan/devboxbackup/resolve/main/miniconda3/share/doc/gettext/examples/hello-python/hello.py.in
375 Bytes
| # Example for use of GNU gettext. | |
| # This file is in the public domain. | |
| # | |
| # Source code of the Python program. | |
| import gettext | |
| import os | |
| gettext.textdomain('hello-python') | |
| gettext.bindtextdomain('hello-python', '@localedir@') | |
| print(gettext.gettext("Hello, world!")) | |
| print(gettext.gettext("This program is running as process number %(pid)d.") | |
| % { 'pid': os.getpid() }) | |