string の、zfill を使う。
例
n = 3 n0 = str(n).zfill(10) print(n0)
結果
0000000003
雑記
投稿日:
string の、zfill を使う。
n = 3 n0 = str(n).zfill(10) print(n0)
0000000003
執筆者:seyanen
関連記事
色を1行ごとに交互につけるには、\xcolor パッケージを使った上で、\rowcolors コマンドを使って色を指定する。 例 \usepackage[table]{xcolor} \begin{d …
次のように入力すればよい。打ち消し線は、英語で strikethrough と呼ぶ。 例 \usepackage[normalem]{ulem} \begin{document} Good \sout …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。