Python 2021 advent calendar day 4 ESC/POS ESC/P (Epson Standard Code for Printers) とは、セイコーエプソン株式会社(以下エプソン)によって開発された、コンピュータ用プリンターを制御するためのプリンター制御言語であり、Esca... 2021.12.04 Pythonサーマルプリンタ
Python 2021 advent calendar day 3 日本語を表示 とりあえずそのまま日本語を追加 from escpos.printer import Network p = Network("192.168.10.21") p.text("Hello Wo... 2021.12.03 Pythonサーマルプリンタ
Python 2021 advent calendar day 2 動作確認 とりあえず実験はWindowsで、記事用にラズパイで作成していく ラズパイのpip3のバージョンが古いのでアップデート pip3 install --upgrade pip PyPI(Python Package Index)に登... 2021.12.02 Pythonサーマルプリンタ
Python 2021 advent calendar day 1 python勉強とESC/POS勉強を兼ねる 何番煎じか判らないサーマルプリンタを用いてのツイッターのクライアントを作成する予定 ※元々はココドリみたいに使用する予定だったけど……(Pos for .Netとかで) 昔オクで買ったサーマルプ... 2021.12.01 Pythonサーマルプリンタ
Python 整数化とか 正の数 >>> 10 / 3 3.3333333333333335 >>> int(10 / 3) 3 >>> 10 // 3 3 >>> math.trunc(10 / 3) 3 >>... 2020.05.19 Python
Python Pythonの画面クリア Pythonのコンソールクリア import os os.system('cls') 「0」が返ってくるので import os tmp = os.system('cls') でとりあえず、「0」は消... 2020.05.18 Python