islower() 関数を使う。
例
print('abcde'.islower())
print('abcDe'.islower())
結果
True
False
雑記
投稿日:
islower() 関数を使う。
print('abcde'.islower())
print('abcDe'.islower())
True
False
執筆者:seyanen
関連記事
辞書に対して、items() メソッドを使うと、タプルを作成することができる。 例 cities = {‘東京’:1000,’大阪’:700, ‘広島’:100} for a,b in cities. …
y軸に、2種類のグラフを異なるスケールでプロットする。 matplotlib axes の twinx() を使う。 https://matplotlib.org/stable/api/_as_gen …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。