1 string str = string.Format("my name is{0}, I'm {1} years old",name,age);
2 string str2 = $"my name is{name}, I'm {age} years old";
作者:꧁执笔小白꧂
文章标签 系统 文章分类 JavaScript 前端开发
1 string str = string.Format("my name is{0}, I'm {1} years old",name,age);
2 string str2 = $"my name is{name}, I'm {age} years old";
作者:꧁执笔小白꧂
计算机新手笨方法学习C语言的博客记录
string.format() 的使用
• C语言中的printf,sprintf打印实现以前使用C语言的时候知道可以使用如下方法动态指定长度打印:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M