Posted on ::

字符串长度

描述

用户输入一个字符串,程序输出字符串的长度

输出格式

一个表示字符串长度的整数

代码

print(len(input())) # 获取输入字符串,调用len()函数来计算字符串长度
Table of Contents