length()
文字列の長さを返します。
len()
の略記も可能です。
文法:
variable
= length(
string
)
variable
= len(
string
)
用例:
a$="hi there"
'次の行では 8 を表示します
print(
len(
a$
)
)