• Skip to main content
  • Skip to primary sidebar

学習記録

python3

HTMLヘッダー

2017年10月25日 by 河副 太智 Leave a Comment

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>

Filed Under: python3

文字列の数値判定

2017年10月25日 by 河副 太智 Leave a Comment

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()) # True
print("1".isdecimal()) # True
print("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()) # True
print("1".isdecimal()) # True
print("1".isnumeric()) # True
# 全角漢数字
print("百".isdigit()) # False
print("百".isdecimal()) #  False
print("百".isnumeric()) # True
# 全角ローマ数字
print("Ⅳ".isdigit()) # False
print("Ⅳ".isdecimal()) # False
print("Ⅳ".isnumeric()) # True

Filed Under: python3

kye binding resolver 消し方

2017年10月23日 by 河副 太智 Leave a Comment

何かの拍子に開いてしまったので、閉じ方メモ

やり方

Mac: ⌘ + “.”
Windows: ctrl + “.”

補足

⌘ + “.” もしくは ctrl + “.”で表示・非表示が出来る。

Filed Under: python3

atomでメニューバーが消えたとき

2017年10月23日 by 河副 太智 Leave a Comment

メニューの再表示方法

  1. Ctrl + Shift + P 押下
    ※ Macの場合は Cmd + Shift + P だが、そもそもメニューが消えない。
  2. メニュー一覧が表示される
  3. toggle と入力
  4. Window:Toggle Menu Bar を選択
  5. メニューが表示される

メニューの消し方

説明不要ですが、消し方も。

  1. メニューバー
  2. View を押下
  3. Toggle Menu Bar を押下

Filed Under: python3

jsonファイルをURL指定で読み込む

2017年10月17日 by 河副 太智 Leave a Comment

with urllib.request.urlopen("https://comtrade.un.org/data/cache/classificationH5.json") as url:
data = json.loads(url.read().decode())
print(data)

Filed Under: python3

コメントアウトのショートカット

2017年10月16日 by 河副 太智 Leave a Comment

コメントアウトしたい部分を選択して、
「Ctrl + /」(Windowsの場合)

Filed Under: python3 Tagged With: コメントアウト

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Go to Next Page »

Primary Sidebar

カテゴリー

  • AWS
  • Bootstrap
  • Dash
  • Django
  • flask
  • GIT(sourcetree)
  • Plotly/Dash
  • VPS
  • その他tool
  • ブログ
  • プログラミング
    • Bokeh
    • css
    • HoloViews
    • Jupyter
    • Numpy
    • Pandas
    • PosgreSQL
    • Python 基本
    • python3
      • webアプリ
    • python3解説
    • scikit-learn
    • scipy
    • vps
    • Wordpress
    • グラフ
    • コマンド
    • スクレイピング
    • チートシート
    • データクレンジング
    • ブロックチェーン
    • 作成実績
    • 時系列分析
    • 機械学習
      • 分析手法
      • 教師有り
    • 異常値検知
    • 自然言語処理
  • 一太郎
  • 数学
    • sympy
      • 対数関数(log)
      • 累乗根(n乗根)
    • 暗号学

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in