[Python] Tuple version of prefecture pull-down

Tuple version

I made a Model in Django and defined it because it was needed in the choices of the prefecture. If you have a chance to use it, please use it (laughs)

Tuple

prefectures.py


PREFECTURES = (
	(1, 'Hokkaido'),
	(2, 'Aomori Prefecture'),
	(3, 'Iwate Prefecture'),
	(4, 'Miyagi Prefecture'),
	(5, 'Akita'),
	(6, 'Yamagata Prefecture'),
	(7, 'Fukushima Prefecture'),
	(8, 'Ibaraki Prefecture'),
	(9, 'Tochigi Prefecture'),
	(10, 'Gunma Prefecture'),
	(11, 'Saitama'),
	(12, 'Chiba'),
	(13, 'Tokyo'),
	(14, 'Kanagawa Prefecture'),
	(15, 'Niigata Prefecture'),
	(16, 'Toyama Prefecture'),
	(17, 'Ishikawa Prefecture'),
	(18, 'Fukui prefecture'),
	(19, 'Yamanashi Prefecture'),
	(20, 'Nagano Prefecture'),
	(21, 'Gifu Prefecture'),
	(22, 'Shizuoka Prefecture'),
	(23, 'Aichi prefecture'),
	(24, 'Mie Prefecture'),
	(25, 'Shiga Prefecture'),
	(26, 'Kyoto'),
	(27, 'Osaka'),
	(28, 'Hyogo prefecture'),
	(29, 'Nara Prefecture'),
	(30, 'Wakayama Prefecture'),
	(31, 'Tottori prefecture'),
	(32, 'Shimane Prefecture'),
	(33, 'Okayama Prefecture'),
	(34, 'Hiroshima Prefecture'),
	(35, 'Yamaguchi Prefecture'),
	(36, 'Tokushima Prefecture'),
	(37, 'Kagawa Prefecture'),
	(38, 'Ehime Prefecture'),
	(39, 'Kochi Prefecture'),
	(40, 'Fukuoka Prefecture'),
	(41, 'Saga Prefecture'),
	(42, 'Nagasaki Prefecture'),
	(43, 'Kumamoto Prefecture'),
	(44, 'Oita Prefecture'),
	(45, 'Miyazaki prefecture'),
	(46, 'Kagoshima prefecture'),
	(47, 'Okinawa Prefecture'),
)

JSON version

Here is the reference for the JSON version. Prefectural code JSON version and JS version

Recommended Posts

[Python] Tuple version of prefecture pull-down
Version upgrade of python Anaconda
Check OpenSSL version of python 2.6
pyenv-change the python version of virtualenv
Ideone> Python version: 3.5 (as of August 29, 2017)
Change the Python version of Homebrew
About the virtual environment of python version 3.7
[Python] Try pydash of the Python version of lodash
Basic grammar of Python3 series (list, tuple)
Introduction of Python
Python> tuple> tuple unpacking
Basics of Python ①
Basics of python ①
Copy of python
PYTHON2.7 64bit version
Introduction of Python
Try the python version of emacs-org parser orgparse
Basic operation list of Python3 list, tuple, dictionary, set
Use OpenSeesPy regardless of OS or Python version
A note about the python version of python virtualenv
Try the free version of Progate [Python I]
"Linear regression" and "Probabilistic version of linear regression" in Python "Bayesian linear regression"
[Python] Operation of enumerate
List of python modules
Implementation example of simple LISP processing system (Python version)
Unification of Python environment
Copy of python preferences
Installation of OpenMDAO (version 1.7.1)
Basics of Python scraping basics
[python] behavior of argmax
Usage of Python locals ()
the zen of Python
Installation of Python 3.3 rc1
Let's use the Python version of the Confluence API module.
# 4 [python] Basics of functions
Basic knowledge of Python
Sober trivia of python3
Summary of Python arguments
Preprocessing of prefecture data
Python version switching (pyenv)
Basics of python: Output
Runtime version of Google App Engine / Python Standard Environment
Installation of matplotlib (Python 3.3.2)
Application of Python 3 vars
EP 1 Know Which Version of Python You ’re Using.
Various processing of Python
Version control of Node, Ruby and Python with anyenv
Check version with python
Put the latest version of Python on linux (Debian) on Chromebook
I want to specify another version of Python with pyvenv
What is the default TLS version of the python requests module?
[2020/06 latest version] Basic usage of python dependency management tool poetry
Align the version of chromedriver_binary
[Python] Correct usage of map
Towards the retirement of Python2
Summary of python file operations
Summary of Python3 list operations
Python --Quick start of logging
Recommendation of binpacking library of python
Story when iterating python tuple
[python] Value of function object (?)