comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

python の for ループで、データだけでなくインデックスも一緒に取得する

通常の for ループではなく、enumerate() を使うとインデックスが取得できる。 例 list1 = [’太郎’,’次郎’,’三郎’] for i, name in enumerat …

no image

python3 でカンマの入った数値の文字列を数値に変換する方法

replace と int 変換を組み合わせる。 例 str1 = ‘1,234,567’ int1 = int(str1.replace(‘,’,”)) print(int1) 結果 123456 …

no image

加速度 m/s^2 の読み方

加速度 ${\rm m/s^2}$ は、「メートル毎秒毎秒」と読む。 翻訳 英語 meters per second per second または metre per second squared 中 …

no image

pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。

リストを iter に変えたあと、… next() を使う。 参考リンク https://www.programiz.com/python-programming/methods/buil …

no image

tex で数式モード内に普通の文字列を入力する方法

\textrm を使う。 例 $$y = f (x) \hspace{1cm} \textrm{This is a function.}$$ 結果