comment

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

関連記事

no image

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

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

no image

tex で太字を書く方法

{\bf } のように、太字にしたい部分を波かっこで囲むとよい。 例 ここは{\bf 太字}になる。 結果

no image

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

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

no image

C言語で関数のアドレスを表示する方法

以下では、main 関数のアドレスを取得して表示する。 例 #include <stdio.h> int main() { printf(“main 関数のアドレスは %p\n”, main); …

no image

python3 で、すべて小文字かどうかを判定する方法

islower() 関数を使う。 例 print(‘abcde’.islower()) print(‘abcDe’.islower()) 結果 True False