2010年6月23日水曜日

文字列の長さは len()

文字列の長さは len() 関数で取得します。
例)Python

s = "abcde"
len(s)


例)Java

String s = "abcde";
s.length();