islower() 関数を使う。
例
print('abcde'.islower())
print('abcDe'.islower())
結果
True
False
雑記
投稿日:
islower() 関数を使う。
print('abcde'.islower())
print('abcDe'.islower())
True
False
執筆者:seyanen
関連記事
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。
リストを iter に変えたあと、… next() を使う。 参考リンク https://www.programiz.com/python-programming/methods/buil …
凡例(legend)の表示位置を変更するには、axis の legend の loc を設定する。 次のリンクhttps://matplotlib.org/stable/api/_as_gen/mat …
plot.subplots() でグラフの縦方向と横方向の数を指定する。 例 import numpy as np from matplotlib import pyplot as plt x1 = …
C言語で scanf のようなものを作るには、python では input() で実現できる。 例 print(‘xの値を入力してください’) x = input() print(‘xの値は ‘ + …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。