Skip to content

Instantly share code, notes, and snippets.

@PyYoshi
Created October 7, 2011 08:45
Show Gist options
  • Select an option

  • Save PyYoshi/1269806 to your computer and use it in GitHub Desktop.

Select an option

Save PyYoshi/1269806 to your computer and use it in GitHub Desktop.
国識別コード
# -*- coding:utf-8 -*-
class CountryCode(object):
Afghanistan = 'AF'
Albania = 'AL'
Algeria = 'DZ'
AmericanSamoa = 'AS'
Andorra = 'AD'
Angola = 'AO'
Anguilla = 'AI'
Antarctica = 'AQ'
AntiguaBarbuda = 'AG'
Argentina = 'AR'
Armenia = 'AM'
Aruba = 'AW'
Australia = 'AU'
Austria = 'AT'
Azerbaijan = 'AZ'
Bahamas = 'BS'
Bahrain = 'BH'
Bangladesh = 'BD'
Barbados = 'BB'
Belarus = 'BY'
Belgium = 'BE'
Belize = 'BZ'
Benin = 'BJ'
Bermuda = 'BM'
Bhutan = 'BT'
Bolivia = 'BO'
BosniaHerzegovina = 'BA'
Botswana = 'BW'
BouvetIsland = 'BV'
Brazil = 'BR'
BritishIndianOceanTerritory = 'IO'
BruneiDarussalam = 'BN'
Bulgaria = 'BG'
BurkinaFaso = 'BF'
Burundi = 'BI'
Cambodia = 'KH'
Cameroon = 'CM'
Canada = 'CA'
CapeVerde = 'CV'
CaymanIslands = 'KY'
CentralAfricanRepublic = 'CF'
Chad = 'TD'
Chile = 'CL'
China = 'CN'
ChristmasIsland = 'CX'
CocosIslands = 'CC'
Colombia = 'CO'
Comoros = 'KM'
Congo = 'CG'
CongoDemocraticRepublic = 'CD'
CookIslands = 'CK'
CostaRica = 'CR'
CotedIvoire = 'CI'
Croatia = 'HR'
Cyprus = 'CY'
CzechRepublic = 'CZ'
Denmark = 'DK'
Djibouti = 'DJ'
Dominica = 'DM'
DominicanRepublic = 'DO'
EastTimor = 'TL'
Ecuador = 'EC'
Egypt = 'EG'
ElSalvador = 'SV'
EquatorialGuinea = 'GQ'
Eritrea = 'ER'
Estonia = 'EE'
Ethiopia = 'ET'
FalklandIslands= 'FK'
FaroeIslands = 'FO'
Fiji = 'FJ'
Finland = 'FI'
France = 'FR'
FrenchGuiana = 'GF'
FrenchPolynesia = 'PF'
FrenchSouthernTerritories = 'TF'
Gabon = 'GA'
Gambia = 'GM'
Georgia = 'GE'
Germany = 'DE'
Ghana = 'GH'
Gibraltar = 'GI'
Greece = 'GR'
Greenland = 'GL'
Grenada = 'GD'
Guadeloupe = 'GP'
Guam = 'GU'
Guatemala = 'GT'
Guinea = 'GN'
GuineaBissau = 'GW'
Guyana = 'GY'
Haiti = 'HT'
HeardMcDonaldIslands = 'HM'
Honduras = 'HN'
HongKong = 'HK'
Hungary = 'HU'
Iceland = 'IS'
India = 'IN'
Indonesia = 'ID'
Iran = 'IR'
Iraq = 'IQ'
Ireland = 'IE'
Israel = 'IL'
Italy = 'IT'
Jamaica = 'JM'
Japan = 'JP'
Jordan = 'JO'
Kazakhstan = 'KZ'
Kenya = 'KE'
Kiribati = 'KI'
Kuwait = 'KW'
Kyrgyzstan = 'KG'
LaoPeoplesDemocraticRepublic = 'LA'
Latvia = 'LV'
Lebanon = 'LB'
Lesotho = 'LS'
Liberia = 'LR'
Libya = 'LY'
Liechtenstein = 'LI'
Lithuania = 'LT'
Luxembourg = 'LU'
Macau = 'MO'
Macedonia = 'MK'
Madagascar = 'MG'
Malawi = 'MW'
Malaysia = 'MY'
Maldives = 'MV'
Mali = 'ML'
Malta = 'MT'
MarshallIslands = 'MH'
Martinique = 'MQ'
Mauritania = 'MR'
Mauritius = 'MU'
Mayotte = 'YT'
Mexico = 'MX'
Micronesia = 'FM'
Moldova = 'MD'
Monaco = 'MC'
Mongolia = 'MN'
Montserrat = 'MS'
Morocco = 'MA'
Mozambique = 'MZ'
Namibia = 'NA'
Nauru = 'NR'
Nepal = 'NP'
Netherlands = 'NL'
NetherlandsAntilles = 'AN'
NewCaledonia = 'NC'
NewZealand = 'NZ'
Nicaragua = 'NI'
Niger = 'NE'
Nigeria = 'NG'
Niue = 'NU'
NorfolkIsland = 'NF'
NorthernMarianaIslands = 'MP'
Norway = 'NO'
Oman = 'OM'
Pakistan = 'PK'
Palau = 'PW'
PalestinianTerritory = 'PS'
Panama = 'PA'
PapuaNewGuinea = 'PG'
Paraguay = 'PY'
Peru = 'PE'
Philippines = 'PH'
Pitcairn = 'PN'
Poland = 'PL'
Portugal = 'PT'
PuertoRico = 'PR'
Qatar = 'QA'
Reunion = 'RE'
Romania = 'RO'
RussianFederation = 'RU'
Rwanda = 'RW'
SaintKittsNevis = 'KN'
SaintLucia = 'LC'
SaintVincentTheGrenadines = 'VC'
Samoa = 'WS'
SanMarino = 'SM'
SaoTomePrincipe = 'ST'
SaudiArabia = 'SA'
Senegal = 'SN'
SerbiaMontenegro = 'CS'
Seychelles = 'SC'
SierraLeone = 'SL'
Singapore = 'SG'
Slovakia = 'SK'
Slovenia = 'SI'
SolomonIslands = 'SB'
Somalia = 'SO'
SouthAfrica = 'ZA'
SouthGeorgiaTheSouthSandwichIslands = 'GS'
SouthKorea = 'KR'
Spain = 'ES'
SriLanka = 'LK'
StHelena = 'SH'
StPierreMiquelon = 'PM'
Suriname = 'SR'
SvalbardJanMayenIslands = 'SJ'
Swaziland = 'SZ'
Sweden = 'SE'
Switzerland = 'CH'
Taiwan = 'TW'
Tajikistan = 'TJ'
Tanzania = 'TZ'
Thailand = 'TH'
Togo = 'TG'
Tokelau = 'TK'
Tonga = 'TO'
TrinidadTobago = 'TT'
Tunisia = 'TN'
Turkey = 'TR'
Turkmenistan = 'TM'
TurksCaicosIslands = 'TC'
Tuvalu = 'TV'
Uganda = 'UG'
Ukraine = 'UA'
UnitedArabEmirates = 'AE'
UnitedKingdom = 'GB'
UnitedStates = 'US'
UnitedStatesMinorOutlyingIslands = 'UM'
Uruguay = 'UY'
Uzbekistan = 'UZ'
Vanuatu = 'VU'
Vatican = 'VA'
Venezuela = 'VE'
VietNam = 'VN'
VirginIslands = 'VI'
WallisFutunaIslands = 'WF'
WesternSahara = 'EH'
Yemen = 'YE'
Zambia = 'ZM'
Zimbabwe = 'ZW'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment