文字列」カテゴリーアーカイブ

(7) 文字列長の取得

文字列の長さは、配列要素数を取得する関数 len で取得できる。 >>> str = ‘abcdefghijklmnopqrstuvwxyz’ >>> len(str) 26