comment

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

関連記事

no image

python3 で文字列を入力させて受け取る方法

C言語で scanf のようなものを作るには、python では input() で実現できる。 例 print(‘xの値を入力してください’) x = input() print(‘xの値は ‘ + …

no image

python3 で、dictionary のキー一覧を取得する方法

dict.keys() でキーを取得することができる。 参考:dictionary の値一覧を取得するときは、dict.values() を使う。 例 print(dict.keys())

no image

c++ で文字列(string)の foreach 操作を行う方法

string の各文字に対して操作を行うには、「iterator」(イテレータ)を使ってループを作る方法がある。iterator の変数名は、it としておくと分かりやすい。 例 #include&l …

no image

tex で⇔記号の上に文字を表示する方法

\underset を使って表示することができる。amsmath パッケージを使う。 例 \usepackage{amsmath} \begin{document} $\underset{\Leftr …

no image

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

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