if a is None:
HTMLヘッダー
print('Content-type: text/html; charset=UTF-8\r\n')
print("""
<html>
<head>
<title>2017年度HSコードを旧HSコードに変換</title>
<link rel="stylesheet" type="text/css" href="form.css">
</head>
<body>
文字列の数値判定
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 半角数字print("1".isdigit()) # Trueprint("1".isdecimal()) # Trueprint("1".isnumeric()) # True# 半角数値(符号付き)print("0.01".isdigit()) # False print("0.01".isdecimal()) # False print("0.01".isnumeric()) # False # 半角数値(小数)print("0.01".isdigit()) # False print("0.01".isdecimal()) # False print("0.01".isnumeric()) # False # U+0660を含む場合print("0٠01".isdigit()) # True print("0٠01".isdecimal()) # True print("0٠01".isnumeric()) # True # 全角数字print("1".isdigit()) # Trueprint("1".isdecimal()) # Trueprint("1".isnumeric()) # True# 全角漢数字print("百".isdigit()) # False print("百".isdecimal()) # Falseprint("百".isnumeric()) # True# 全角ローマ数字print("Ⅳ".isdigit()) # False print("Ⅳ".isdecimal()) # False print("Ⅳ".isnumeric()) # True |
kye binding resolver 消し方
何かの拍子に開いてしまったので、閉じ方メモ
やり方
Mac: ⌘ + “.”
Windows: ctrl + “.”
補足
⌘ + “.” もしくは ctrl + “.”で表示・非表示が出来る。
atomでメニューバーが消えたとき
メニューの再表示方法
Ctrl + Shift + P押下
※ Macの場合はCmd + Shift + Pだが、そもそもメニューが消えない。- メニュー一覧が表示される
toggleと入力Window:Toggle Menu Barを選択- メニューが表示される
メニューの消し方
説明不要ですが、消し方も。
- メニューバー
- View を押下
- Toggle Menu Bar を押下
jsonファイルをURL指定で読み込む
with urllib.request.urlopen("https://comtrade.un.org/data/cache/classificationH5.json") as url:
data = json.loads(url.read().decode())
print(data)