comment

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

関連記事

no image

python3 で、フォルダがなければ作成するプログラム

os.mkdir() 関数を使う。 すでにフォルダが存在している場合は、エラーを表示する。 例 import os folder_name = ‘./python_create_folder’ try …

no image

最大サイズを指定して、画像をまとめてリサイズする方法(mogrify コマンド)

imageMagick の mogrify コマンドを使う。 例(*.jpg ファイルを jpeg ファイルにまとめてリサイズする) mogrify -format jpeg -resize 900 …

no image

std::map の内容が空かどうか判定する方法

map の中身が空であるかどうかには、empty() を使う。 map の要素を消去するには、erase を使う。 例 #include <iostream> #include <map> …

no image

tex の equation 環境で複数行の数式を入力する(\split を使う)

\equation の中で \split を使う。 \tag を使って、自分で定義した式番号を使える。 例 \begin{equation} \begin{split} a \\ b \\ c \en …

no image

tex で、集合の元でないことを表現する方法

\not \in を使う。 例 x \not \in A 結果