1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Unicode による国旗表

Last updated at Posted at 2022-02-13

国旗の表示はブラウザの対応次第です

英二文字の国名コードを使った Unicode 国旗表

二文字の英大文字アルファベット('A'〜'Z')を、二つの Unicode (U+1F1E6 〜 U+1F1FF)に変換した、単純な 26x26 の表です。

セル内がアルファベット順の表

  A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
 
A 🇦🇦
🇦🇧
🇦🇨
🇦🇩
🇦🇪
🇦🇫
🇦🇬
🇦🇭
🇦🇮
🇦🇯
🇦🇰
🇦🇱
🇦🇲
🇦🇳
🇦🇴
🇦🇵
🇦🇶
🇦🇷
🇦🇸
🇦🇹
🇦🇺
🇦🇻
🇦🇼
🇦🇽
🇦🇾
🇦🇿
 
B 🇧🇦
🇧🇧
🇧🇨
🇧🇩
🇧🇪
🇧🇫
🇧🇬
🇧🇭
🇧🇮
🇧🇯
🇧🇰
🇧🇱
🇧🇲
🇧🇳
🇧🇴
🇧🇵
🇧🇶
🇧🇷
🇧🇸
🇧🇹
🇧🇺
🇧🇻
🇧🇼
🇧🇽
🇧🇾
🇧🇿
 
C 🇨🇦
🇨🇧
🇨🇨
🇨🇩
🇨🇪
🇨🇫
🇨🇬
🇨🇭
🇨🇮
🇨🇯
🇨🇰
🇨🇱
🇨🇲
🇨🇳
🇨🇴
🇨🇵
🇨🇶
🇨🇷
🇨🇸
🇨🇹
🇨🇺
🇨🇻
🇨🇼
🇨🇽
🇨🇾
🇨🇿
 
D 🇩🇦
🇩🇧
🇩🇨
🇩🇩
🇩🇪
🇩🇫
🇩🇬
🇩🇭
🇩🇮
🇩🇯
🇩🇰
🇩🇱
🇩🇲
🇩🇳
🇩🇴
🇩🇵
🇩🇶
🇩🇷
🇩🇸
🇩🇹
🇩🇺
🇩🇻
🇩🇼
🇩🇽
🇩🇾
🇩🇿
 
E 🇪🇦
🇪🇧
🇪🇨
🇪🇩
🇪🇪
🇪🇫
🇪🇬
🇪🇭
🇪🇮
🇪🇯
🇪🇰
🇪🇱
🇪🇲
🇪🇳
🇪🇴
🇪🇵
🇪🇶
🇪🇷
🇪🇸
🇪🇹
🇪🇺
🇪🇻
🇪🇼
🇪🇽
🇪🇾
🇪🇿
 
F 🇫🇦
🇫🇧
🇫🇨
🇫🇩
🇫🇪
🇫🇫
🇫🇬
🇫🇭
🇫🇮
🇫🇯
🇫🇰
🇫🇱
🇫🇲
🇫🇳
🇫🇴
🇫🇵
🇫🇶
🇫🇷
🇫🇸
🇫🇹
🇫🇺
🇫🇻
🇫🇼
🇫🇽
🇫🇾
🇫🇿
 
G 🇬🇦
🇬🇧
🇬🇨
🇬🇩
🇬🇪
🇬🇫
🇬🇬
🇬🇭
🇬🇮
🇬🇯
🇬🇰
🇬🇱
🇬🇲
🇬🇳
🇬🇴
🇬🇵
🇬🇶
🇬🇷
🇬🇸
🇬🇹
🇬🇺
🇬🇻
🇬🇼
🇬🇽
🇬🇾
🇬🇿
 
H 🇭🇦
🇭🇧
🇭🇨
🇭🇩
🇭🇪
🇭🇫
🇭🇬
🇭🇭
🇭🇮
🇭🇯
🇭🇰
🇭🇱
🇭🇲
🇭🇳
🇭🇴
🇭🇵
🇭🇶
🇭🇷
🇭🇸
🇭🇹
🇭🇺
🇭🇻
🇭🇼
🇭🇽
🇭🇾
🇭🇿
 
I 🇮🇦
🇮🇧
🇮🇨
🇮🇩
🇮🇪
🇮🇫
🇮🇬
🇮🇭
🇮🇮
🇮🇯
🇮🇰
🇮🇱
🇮🇲
🇮🇳
🇮🇴
🇮🇵
🇮🇶
🇮🇷
🇮🇸
🇮🇹
🇮🇺
🇮🇻
🇮🇼
🇮🇽
🇮🇾
🇮🇿
 
J 🇯🇦
🇯🇧
🇯🇨
🇯🇩
🇯🇪
🇯🇫
🇯🇬
🇯🇭
🇯🇮
🇯🇯
🇯🇰
🇯🇱
🇯🇲
🇯🇳
🇯🇴
🇯🇵
🇯🇶
🇯🇷
🇯🇸
🇯🇹
🇯🇺
🇯🇻
🇯🇼
🇯🇽
🇯🇾
🇯🇿
 
K 🇰🇦
🇰🇧
🇰🇨
🇰🇩
🇰🇪
🇰🇫
🇰🇬
🇰🇭
🇰🇮
🇰🇯
🇰🇰
🇰🇱
🇰🇲
🇰🇳
🇰🇴
🇰🇵
🇰🇶
🇰🇷
🇰🇸
🇰🇹
🇰🇺
🇰🇻
🇰🇼
🇰🇽
🇰🇾
🇰🇿
 
L 🇱🇦
🇱🇧
🇱🇨
🇱🇩
🇱🇪
🇱🇫
🇱🇬
🇱🇭
🇱🇮
🇱🇯
🇱🇰
🇱🇱
🇱🇲
🇱🇳
🇱🇴
🇱🇵
🇱🇶
🇱🇷
🇱🇸
🇱🇹
🇱🇺
🇱🇻
🇱🇼
🇱🇽
🇱🇾
🇱🇿
 
M 🇲🇦
🇲🇧
🇲🇨
🇲🇩
🇲🇪
🇲🇫
🇲🇬
🇲🇭
🇲🇮
🇲🇯
🇲🇰
🇲🇱
🇲🇲
🇲🇳
🇲🇴
🇲🇵
🇲🇶
🇲🇷
🇲🇸
🇲🇹
🇲🇺
🇲🇻
🇲🇼
🇲🇽
🇲🇾
🇲🇿
 
N 🇳🇦
🇳🇧
🇳🇨
🇳🇩
🇳🇪
🇳🇫
🇳🇬
🇳🇭
🇳🇮
🇳🇯
🇳🇰
🇳🇱
🇳🇲
🇳🇳
🇳🇴
🇳🇵
🇳🇶
🇳🇷
🇳🇸
🇳🇹
🇳🇺
🇳🇻
🇳🇼
🇳🇽
🇳🇾
🇳🇿
 
O 🇴🇦
🇴🇧
🇴🇨
🇴🇩
🇴🇪
🇴🇫
🇴🇬
🇴🇭
🇴🇮
🇴🇯
🇴🇰
🇴🇱
🇴🇲
🇴🇳
🇴🇴
🇴🇵
🇴🇶
🇴🇷
🇴🇸
🇴🇹
🇴🇺
🇴🇻
🇴🇼
🇴🇽
🇴🇾
🇴🇿
 
P 🇵🇦
🇵🇧
🇵🇨
🇵🇩
🇵🇪
🇵🇫
🇵🇬
🇵🇭
🇵🇮
🇵🇯
🇵🇰
🇵🇱
🇵🇲
🇵🇳
🇵🇴
🇵🇵
🇵🇶
🇵🇷
🇵🇸
🇵🇹
🇵🇺
🇵🇻
🇵🇼
🇵🇽
🇵🇾
🇵🇿
 
Q 🇶🇦
🇶🇧
🇶🇨
🇶🇩
🇶🇪
🇶🇫
🇶🇬
🇶🇭
🇶🇮
🇶🇯
🇶🇰
🇶🇱
🇶🇲
🇶🇳
🇶🇴
🇶🇵
🇶🇶
🇶🇷
🇶🇸
🇶🇹
🇶🇺
🇶🇻
🇶🇼
🇶🇽
🇶🇾
🇶🇿
 
R 🇷🇦
🇷🇧
🇷🇨
🇷🇩
🇷🇪
🇷🇫
🇷🇬
🇷🇭
🇷🇮
🇷🇯
🇷🇰
🇷🇱
🇷🇲
🇷🇳
🇷🇴
🇷🇵
🇷🇶
🇷🇷
🇷🇸
🇷🇹
🇷🇺
🇷🇻
🇷🇼
🇷🇽
🇷🇾
🇷🇿
 
S 🇸🇦
🇸🇧
🇸🇨
🇸🇩
🇸🇪
🇸🇫
🇸🇬
🇸🇭
🇸🇮
🇸🇯
🇸🇰
🇸🇱
🇸🇲
🇸🇳
🇸🇴
🇸🇵
🇸🇶
🇸🇷
🇸🇸
🇸🇹
🇸🇺
🇸🇻
🇸🇼
🇸🇽
🇸🇾
🇸🇿
 
T 🇹🇦
🇹🇧
🇹🇨
🇹🇩
🇹🇪
🇹🇫
🇹🇬
🇹🇭
🇹🇮
🇹🇯
🇹🇰
🇹🇱
🇹🇲
🇹🇳
🇹🇴
🇹🇵
🇹🇶
🇹🇷
🇹🇸
🇹🇹
🇹🇺
🇹🇻
🇹🇼
🇹🇽
🇹🇾
🇹🇿
 
U 🇺🇦
🇺🇧
🇺🇨
🇺🇩
🇺🇪
🇺🇫
🇺🇬
🇺🇭
🇺🇮
🇺🇯
🇺🇰
🇺🇱
🇺🇲
🇺🇳
🇺🇴
🇺🇵
🇺🇶
🇺🇷
🇺🇸
🇺🇹
🇺🇺
🇺🇻
🇺🇼
🇺🇽
🇺🇾
🇺🇿
 
V 🇻🇦
🇻🇧
🇻🇨
🇻🇩
🇻🇪
🇻🇫
🇻🇬
🇻🇭
🇻🇮
🇻🇯
🇻🇰
🇻🇱
🇻🇲
🇻🇳
🇻🇴
🇻🇵
🇻🇶
🇻🇷
🇻🇸
🇻🇹
🇻🇺
🇻🇻
🇻🇼
🇻🇽
🇻🇾
🇻🇿
 
W 🇼🇦
🇼🇧
🇼🇨
🇼🇩
🇼🇪
🇼🇫
🇼🇬
🇼🇭
🇼🇮
🇼🇯
🇼🇰
🇼🇱
🇼🇲
🇼🇳
🇼🇴
🇼🇵
🇼🇶
🇼🇷
🇼🇸
🇼🇹
🇼🇺
🇼🇻
🇼🇼
🇼🇽
🇼🇾
🇼🇿
 
X 🇽🇦
🇽🇧
🇽🇨
🇽🇩
🇽🇪
🇽🇫
🇽🇬
🇽🇭
🇽🇮
🇽🇯
🇽🇰
🇽🇱
🇽🇲
🇽🇳
🇽🇴
🇽🇵
🇽🇶
🇽🇷
🇽🇸
🇽🇹
🇽🇺
🇽🇻
🇽🇼
🇽🇽
🇽🇾
🇽🇿
 
Y 🇾🇦
🇾🇧
🇾🇨
🇾🇩
🇾🇪
🇾🇫
🇾🇬
🇾🇭
🇾🇮
🇾🇯
🇾🇰
🇾🇱
🇾🇲
🇾🇳
🇾🇴
🇾🇵
🇾🇶
🇾🇷
🇾🇸
🇾🇹
🇾🇺
🇾🇻
🇾🇼
🇾🇽
🇾🇾
🇾🇿
 
Z 🇿🇦
🇿🇧
🇿🇨
🇿🇩
🇿🇪
🇿🇫
🇿🇬
🇿🇭
🇿🇮
🇿🇯
🇿🇰
🇿🇱
🇿🇲
🇿🇳
🇿🇴
🇿🇵
🇿🇶
🇿🇷
🇿🇸
🇿🇹
🇿🇺
🇿🇻
🇿🇼
🇿🇽
🇿🇾
🇿🇿
 

セル内の段方向がアルファベット順の表

  A
J
S
B
K
T
C
L
U
D
M
V
E
N
W
F
O
X
G
P
Y
H
Q
Z
I
R
 
A 🇦🇦
🇦🇯
🇦🇸
🇦🇧
🇦🇰
🇦🇹
🇦🇨
🇦🇱
🇦🇺
🇦🇩
🇦🇲
🇦🇻
🇦🇪
🇦🇳
🇦🇼
🇦🇫
🇦🇴
🇦🇽
🇦🇬
🇦🇵
🇦🇾
🇦🇭
🇦🇶
🇦🇿
🇦🇮
🇦🇷
 
B 🇧🇦
🇧🇯
🇧🇸
🇧🇧
🇧🇰
🇧🇹
🇧🇨
🇧🇱
🇧🇺
🇧🇩
🇧🇲
🇧🇻
🇧🇪
🇧🇳
🇧🇼
🇧🇫
🇧🇴
🇧🇽
🇧🇬
🇧🇵
🇧🇾
🇧🇭
🇧🇶
🇧🇿
🇧🇮
🇧🇷
 
C 🇨🇦
🇨🇯
🇨🇸
🇨🇧
🇨🇰
🇨🇹
🇨🇨
🇨🇱
🇨🇺
🇨🇩
🇨🇲
🇨🇻
🇨🇪
🇨🇳
🇨🇼
🇨🇫
🇨🇴
🇨🇽
🇨🇬
🇨🇵
🇨🇾
🇨🇭
🇨🇶
🇨🇿
🇨🇮
🇨🇷
 
D 🇩🇦
🇩🇯
🇩🇸
🇩🇧
🇩🇰
🇩🇹
🇩🇨
🇩🇱
🇩🇺
🇩🇩
🇩🇲
🇩🇻
🇩🇪
🇩🇳
🇩🇼
🇩🇫
🇩🇴
🇩🇽
🇩🇬
🇩🇵
🇩🇾
🇩🇭
🇩🇶
🇩🇿
🇩🇮
🇩🇷
 
E 🇪🇦
🇪🇯
🇪🇸
🇪🇧
🇪🇰
🇪🇹
🇪🇨
🇪🇱
🇪🇺
🇪🇩
🇪🇲
🇪🇻
🇪🇪
🇪🇳
🇪🇼
🇪🇫
🇪🇴
🇪🇽
🇪🇬
🇪🇵
🇪🇾
🇪🇭
🇪🇶
🇪🇿
🇪🇮
🇪🇷
 
F 🇫🇦
🇫🇯
🇫🇸
🇫🇧
🇫🇰
🇫🇹
🇫🇨
🇫🇱
🇫🇺
🇫🇩
🇫🇲
🇫🇻
🇫🇪
🇫🇳
🇫🇼
🇫🇫
🇫🇴
🇫🇽
🇫🇬
🇫🇵
🇫🇾
🇫🇭
🇫🇶
🇫🇿
🇫🇮
🇫🇷
 
G 🇬🇦
🇬🇯
🇬🇸
🇬🇧
🇬🇰
🇬🇹
🇬🇨
🇬🇱
🇬🇺
🇬🇩
🇬🇲
🇬🇻
🇬🇪
🇬🇳
🇬🇼
🇬🇫
🇬🇴
🇬🇽
🇬🇬
🇬🇵
🇬🇾
🇬🇭
🇬🇶
🇬🇿
🇬🇮
🇬🇷
 
H 🇭🇦
🇭🇯
🇭🇸
🇭🇧
🇭🇰
🇭🇹
🇭🇨
🇭🇱
🇭🇺
🇭🇩
🇭🇲
🇭🇻
🇭🇪
🇭🇳
🇭🇼
🇭🇫
🇭🇴
🇭🇽
🇭🇬
🇭🇵
🇭🇾
🇭🇭
🇭🇶
🇭🇿
🇭🇮
🇭🇷
 
I 🇮🇦
🇮🇯
🇮🇸
🇮🇧
🇮🇰
🇮🇹
🇮🇨
🇮🇱
🇮🇺
🇮🇩
🇮🇲
🇮🇻
🇮🇪
🇮🇳
🇮🇼
🇮🇫
🇮🇴
🇮🇽
🇮🇬
🇮🇵
🇮🇾
🇮🇭
🇮🇶
🇮🇿
🇮🇮
🇮🇷
 
J 🇯🇦
🇯🇯
🇯🇸
🇯🇧
🇯🇰
🇯🇹
🇯🇨
🇯🇱
🇯🇺
🇯🇩
🇯🇲
🇯🇻
🇯🇪
🇯🇳
🇯🇼
🇯🇫
🇯🇴
🇯🇽
🇯🇬
🇯🇵
🇯🇾
🇯🇭
🇯🇶
🇯🇿
🇯🇮
🇯🇷
 
K 🇰🇦
🇰🇯
🇰🇸
🇰🇧
🇰🇰
🇰🇹
🇰🇨
🇰🇱
🇰🇺
🇰🇩
🇰🇲
🇰🇻
🇰🇪
🇰🇳
🇰🇼
🇰🇫
🇰🇴
🇰🇽
🇰🇬
🇰🇵
🇰🇾
🇰🇭
🇰🇶
🇰🇿
🇰🇮
🇰🇷
 
L 🇱🇦
🇱🇯
🇱🇸
🇱🇧
🇱🇰
🇱🇹
🇱🇨
🇱🇱
🇱🇺
🇱🇩
🇱🇲
🇱🇻
🇱🇪
🇱🇳
🇱🇼
🇱🇫
🇱🇴
🇱🇽
🇱🇬
🇱🇵
🇱🇾
🇱🇭
🇱🇶
🇱🇿
🇱🇮
🇱🇷
 
M 🇲🇦
🇲🇯
🇲🇸
🇲🇧
🇲🇰
🇲🇹
🇲🇨
🇲🇱
🇲🇺
🇲🇩
🇲🇲
🇲🇻
🇲🇪
🇲🇳
🇲🇼
🇲🇫
🇲🇴
🇲🇽
🇲🇬
🇲🇵
🇲🇾
🇲🇭
🇲🇶
🇲🇿
🇲🇮
🇲🇷
 
N 🇳🇦
🇳🇯
🇳🇸
🇳🇧
🇳🇰
🇳🇹
🇳🇨
🇳🇱
🇳🇺
🇳🇩
🇳🇲
🇳🇻
🇳🇪
🇳🇳
🇳🇼
🇳🇫
🇳🇴
🇳🇽
🇳🇬
🇳🇵
🇳🇾
🇳🇭
🇳🇶
🇳🇿
🇳🇮
🇳🇷
 
O 🇴🇦
🇴🇯
🇴🇸
🇴🇧
🇴🇰
🇴🇹
🇴🇨
🇴🇱
🇴🇺
🇴🇩
🇴🇲
🇴🇻
🇴🇪
🇴🇳
🇴🇼
🇴🇫
🇴🇴
🇴🇽
🇴🇬
🇴🇵
🇴🇾
🇴🇭
🇴🇶
🇴🇿
🇴🇮
🇴🇷
 
P 🇵🇦
🇵🇯
🇵🇸
🇵🇧
🇵🇰
🇵🇹
🇵🇨
🇵🇱
🇵🇺
🇵🇩
🇵🇲
🇵🇻
🇵🇪
🇵🇳
🇵🇼
🇵🇫
🇵🇴
🇵🇽
🇵🇬
🇵🇵
🇵🇾
🇵🇭
🇵🇶
🇵🇿
🇵🇮
🇵🇷
 
Q 🇶🇦
🇶🇯
🇶🇸
🇶🇧
🇶🇰
🇶🇹
🇶🇨
🇶🇱
🇶🇺
🇶🇩
🇶🇲
🇶🇻
🇶🇪
🇶🇳
🇶🇼
🇶🇫
🇶🇴
🇶🇽
🇶🇬
🇶🇵
🇶🇾
🇶🇭
🇶🇶
🇶🇿
🇶🇮
🇶🇷
 
R 🇷🇦
🇷🇯
🇷🇸
🇷🇧
🇷🇰
🇷🇹
🇷🇨
🇷🇱
🇷🇺
🇷🇩
🇷🇲
🇷🇻
🇷🇪
🇷🇳
🇷🇼
🇷🇫
🇷🇴
🇷🇽
🇷🇬
🇷🇵
🇷🇾
🇷🇭
🇷🇶
🇷🇿
🇷🇮
🇷🇷
 
S 🇸🇦
🇸🇯
🇸🇸
🇸🇧
🇸🇰
🇸🇹
🇸🇨
🇸🇱
🇸🇺
🇸🇩
🇸🇲
🇸🇻
🇸🇪
🇸🇳
🇸🇼
🇸🇫
🇸🇴
🇸🇽
🇸🇬
🇸🇵
🇸🇾
🇸🇭
🇸🇶
🇸🇿
🇸🇮
🇸🇷
 
T 🇹🇦
🇹🇯
🇹🇸
🇹🇧
🇹🇰
🇹🇹
🇹🇨
🇹🇱
🇹🇺
🇹🇩
🇹🇲
🇹🇻
🇹🇪
🇹🇳
🇹🇼
🇹🇫
🇹🇴
🇹🇽
🇹🇬
🇹🇵
🇹🇾
🇹🇭
🇹🇶
🇹🇿
🇹🇮
🇹🇷
 
U 🇺🇦
🇺🇯
🇺🇸
🇺🇧
🇺🇰
🇺🇹
🇺🇨
🇺🇱
🇺🇺
🇺🇩
🇺🇲
🇺🇻
🇺🇪
🇺🇳
🇺🇼
🇺🇫
🇺🇴
🇺🇽
🇺🇬
🇺🇵
🇺🇾
🇺🇭
🇺🇶
🇺🇿
🇺🇮
🇺🇷
 
V 🇻🇦
🇻🇯
🇻🇸
🇻🇧
🇻🇰
🇻🇹
🇻🇨
🇻🇱
🇻🇺
🇻🇩
🇻🇲
🇻🇻
🇻🇪
🇻🇳
🇻🇼
🇻🇫
🇻🇴
🇻🇽
🇻🇬
🇻🇵
🇻🇾
🇻🇭
🇻🇶
🇻🇿
🇻🇮
🇻🇷
 
W 🇼🇦
🇼🇯
🇼🇸
🇼🇧
🇼🇰
🇼🇹
🇼🇨
🇼🇱
🇼🇺
🇼🇩
🇼🇲
🇼🇻
🇼🇪
🇼🇳
🇼🇼
🇼🇫
🇼🇴
🇼🇽
🇼🇬
🇼🇵
🇼🇾
🇼🇭
🇼🇶
🇼🇿
🇼🇮
🇼🇷
 
X 🇽🇦
🇽🇯
🇽🇸
🇽🇧
🇽🇰
🇽🇹
🇽🇨
🇽🇱
🇽🇺
🇽🇩
🇽🇲
🇽🇻
🇽🇪
🇽🇳
🇽🇼
🇽🇫
🇽🇴
🇽🇽
🇽🇬
🇽🇵
🇽🇾
🇽🇭
🇽🇶
🇽🇿
🇽🇮
🇽🇷
 
Y 🇾🇦
🇾🇯
🇾🇸
🇾🇧
🇾🇰
🇾🇹
🇾🇨
🇾🇱
🇾🇺
🇾🇩
🇾🇲
🇾🇻
🇾🇪
🇾🇳
🇾🇼
🇾🇫
🇾🇴
🇾🇽
🇾🇬
🇾🇵
🇾🇾
🇾🇭
🇾🇶
🇾🇿
🇾🇮
🇾🇷
 
Z 🇿🇦
🇿🇯
🇿🇸
🇿🇧
🇿🇰
🇿🇹
🇿🇨
🇿🇱
🇿🇺
🇿🇩
🇿🇲
🇿🇻
🇿🇪
🇿🇳
🇿🇼
🇿🇫
🇿🇴
🇿🇽
🇿🇬
🇿🇵
🇿🇾
🇿🇭
🇿🇶
🇿🇿
🇿🇮
🇿🇷
 

Qiita向けマークダウン生成 (Python)
#!/usr/bin/env python3

COUNTRY_CODE_TOP = 0x1F1E6

CODE_WIDTH = 9
CODE_HEIGHT = int((26 + CODE_WIDTH - 1) / CODE_WIDTH)
CODE_SIZE = CODE_WIDTH * CODE_HEIGHT

#CODE = [[x + y * CODE_WIDTH for y in range(CODE_HEIGHT)] for x in range(CODE_WIDTH)]
CODE = [[x * CODE_HEIGHT + y for y in range(CODE_HEIGHT)] for x in range(CODE_WIDTH)]


def hchar(s, x):
    return ' ' if x >= 26 else chr(s + x)


def header(s):
    return '|'.join(['<br/>'.join([hchar(s, c) for c in cs]) for cs in CODE])


def cchar(a, b):
    ca = COUNTRY_CODE_TOP + a
    cb = COUNTRY_CODE_TOP + b
    return '&nbsp;' if b >= 26 else '%c%c' % (ca, cb)


def cline(y):
    return '|'.join(['<br/>'.join([cchar(y, c) for c in cs]) for cs in CODE])


print('|&nbsp;|%s|' % header(0x41))
print('|' + ':-:|' * (CODE_WIDTH + 1))
print('\n'.join(['|%c|%s|' % (chr(y+0x41), cline(y)) for y in range(26)]))
HTML(JavaScriptによる生成)
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>国旗表</title>
    <style>
      table {
          border: solid 1px #ccc;
          border-collaspe: collaspe;
          border-spacing: 0;
      }
      th, td {
          border: solid 1px #ccc;
          padding: 6px;
          text-align: center;
      }
      th {
          background: #eee;
      }
      small {
          font-size: 10%;
      }
    </style>
  </head>
  <body>
    <h1>国旗表</h1>
    <table id="tab">
    <script type="text/javascript">
    <!--
      function setTable() {
          const tab = document.getElementById('tab');
          {
              const tr = document.createElement('tr');
              tr.appendChild(document.createElement('th'));
              for (let d2 = 0; d2 < 26; d2++) {
                  const th = document.createElement('th');
                  th.innerText = String.fromCodePoint(d2 + 0x41);
                  tr.appendChild(th);
              }
              tab.appendChild(tr);
          }
          for (let d1 = 0; d1 < 26; d1++) {
              const tr = document.createElement('tr');
              const th = document.createElement('th');
              th.innerText = String.fromCodePoint(d1 + 0x41);
              tr.appendChild(th);
              for (let d2 = 0; d2 < 26; d2++) {
                  const td = document.createElement('td');
                  const span = document.createElement('span');
                  span.innerText = String.fromCodePoint(d1 + 0x1f1e6, d2 + 0x1f1e6);
                  td.appendChild(span);
                  if (false) {
                      td.appendChild(document.createElement('br'));
                      const small = document.createElement('small');
                      small.innerText = String.fromCodePoint(d1 + 0x41, d2 + 0x41);
                      td.appendChild(small);
                  }
                  tr.appendChild(td);
              }
              tab.appendChild(tr);
          }
      }
      setTable();
      -->
    </script>
  </body>
</html>
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?