当前位置:网站首页>String length
String length
2022-06-29 02:18:00 【Long street 395】
describe
The user enters a string , The length of the program output string
Input format
Enter a string
Output format
An integer representing the length of a string
Example 1
Input :Hello world!
Output :12# The user enters a string , The length of the program output string
#len() Function can be used to get the length of a string
str = input()
n = len(str)
print(n)
# The program can be implemented in one statement
print(len(input()))
边栏推荐
- CTFHub-Web-SQL注入-整数型注入
- Pyinstaller打包pikepdf失败的问题排查
- 如何用项目甘特图,做好项目汇报
- KOA Quick Start
- 为什么要在网站上安装SSL证书?
- Is there any risk in opening an account for Dongfang fortune stock? Is it safe for Dongfang fortune to open an account
- Chrome browser close update Popup
- Qt基础教程:数据类型与容器
- How to use project Gantt chart to make project report
- Kubernetes: container resource requirements and constraints (constraints)
猜你喜欢

Koa quick start

Chrome browser close update Popup

CTFHub-Web-密码口令-弱口令

CTFHub-Web-SQL注入-整数型注入

MySQL的下载和安装

Dialogue with opensea co creation Alex: we still only touch the tip of the iceberg of NFT capability | chain catcher

Flex application: realize two rows and five columns of data, self-adaptive

【Redis】Key的层级结构
![[redis] hash type](/img/8b/2585908318f5fe88b455323d3f392e.png)
[redis] hash type

What is the Valentine's Day gift given by the operator to the product?
随机推荐
2022.02.15
[understanding of opportunity -33]: seeing is not necessarily true. Most of the time, "seeing is false"
Which brokerage is safer and more convenient to open an account for compass mobile stock?
如何成为一名高级数字 IC 设计工程师(6-4)数字 IC 验证篇:测试点分解
Scala Foundation (3): Operators and Process Control
如何成为一名高级数字 IC 设计工程师(4-2)脚本篇:Verilog HDL 代码实现的文件读写操作
Blog publishing test 3
MySQL details - aggregation and grouping
三角函数计算
How to become a senior digital IC Design Engineer (4-2) script: file read / write operation realized by Verilog HDL code
Utiliser kubernets Resource Lock pour compléter son application ha
Troubleshooting of pyinstaller failed to pack pikepdf
What is stock online account opening? Is it safe to open an account online?
东方财富股票开户是会有什么风险吗?东方财富开户安全吗
Qt基础教程:QStringList
字符串输出
如何用项目甘特图,做好项目汇报
Set set
大三下期末考試
[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc