返回字符串的长度,包括空格,制表符和换行符。
String.length
void main() { String str="Hello All"; print("The length of the string is: ${str.length}"); }
它将产生以下输出-。
链接:https://www.learnfk.comhttps://www.learnfk.com/dart-programming/dart-programming-string-property-length.html
来源:LearnFk无涯教程网
The length of the string is: 9
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
代码精进之路 -〔范学雷〕
零基础学Java -〔臧萌〕
深入浅出云计算 -〔何恺铎〕
Go 语言项目开发实战 -〔孔令飞〕
超级访谈:对话汤峥嵘 -〔汤峥嵘〕
现代React Web开发实战 -〔宋一玮〕
JavaScript进阶实战课 -〔石川〕
现代C++20实战高手课 -〔卢誉声〕
B端体验设计入门课 -〔林远宏(汤圆)〕