[構文.py]繰り返し処理 Python 2026.07.16 for文 # 文字列の長さを計測: words = ['cat', 'window', 'defenestrate'] for w in words: print(w, len(w))
コメント