当前位置:网站首页>字符串长度
字符串长度
2022-06-29 02:12:00 【长街395】
描述
用户输入一个字符串,程序输出字符串的长度
输入格式
输入一个字符串
输出格式
一个表示字符串长度的整数
示例 1
输入:Hello world!
输出:12#用户输入一个字符串,程序输出字符串的长度
#len()函数可用于获取字符串的长度
str = input()
n = len(str)
print(n)
#可将程序用一条语句实现
print(len(input()))
边栏推荐
- How to use project Gantt chart to make project report
- How to become a senior digital IC Design Engineer (4-3)
- [从零开始学习FPGA编程-50]:视野篇 - 芯片是如何被制造出来的?芯片制造的十三大步骤。
- 2022.02.15
- SAP ui5 beginner tutorial 22 - development and use of filter
- [learn FPGA programming from scratch -49]: Vision - how is the chip designed?
- [MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc
- 【Redis】SortedSet类型
- How to manage device authorization
- Com3529 test analysis
猜你喜欢

SystemVerilog structure (I)

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

To apply for a test engineer after years, the resume with high scores should be written like this

基于 RISC-V SoC 的可配置 FFT 系统设计(1)引言

Boost the digital economy and face the future office | the launch of the new version of spreadjsv15.0 is about to begin

2022.02.15

How to become a senior digital IC Design Engineer (4-5) script: file comparison operation implemented by shell script
![[redis] key hierarchy](/img/ab/a5d3bb61b4571966d0f47037af4f41.png)
[redis] key hierarchy

【Redis】Set类型

Tiflash compiler oriented automatic vectorization acceleration
随机推荐
如何成为一名高级数字 IC 设计工程师(6-5)数字 IC 验证篇:覆盖率收集
How to become a senior digital IC Design Engineer (1-1) Verilog coding Grammar: Introduction
Project R & D, what are the free brain mapping tools that are easy to use
直播预告|SQL也能玩转工业级机器学习?MLOps meetup V3带你一探究竟!
Uniapp notes
如何成为一名高级数字 IC 设计工程师(3-5)工具篇:SpyGlass 技术
Qt基础教程:数据类型与容器
如何成为一名高级数字 IC 设计工程师(1-1)Verilog 编码语法篇:引言
How to become a senior digital IC Design Engineer (6-5) digital IC Verification: coverage collection
数字 IC 设计、FPGA 设计秋招笔试题目、答案、解析(2)2021 华为海思(上)
利用kubernetes资源锁完成自己的HA应用
[apprendre la programmation FPGA - 49 à partir de zéro]: vision - Comment la puce a - t - elle été conçue?
SAP ui5 beginner tutorial 22 - development and use of filter
Wechat campaign auto like
Koa 快速入門
Who do you want to know when opening a stock account? Is it safe to open an account online now?
How to become a senior digital IC Design Engineer (3-5) tools: Spyglass Technology
同花顺究竟是如何开户?现在网上开户安全么?
QT basics tutorial: qstringlist
11-Go基础:接口