C#-format-填充字符串---ShinePans
来源:互联网 发布:2017cctv网络春晚 编辑:程序博客网 时间:2024/05/17 03:17
using System;class program{ static void Main() { string str1 = "The History of ShinePans"; string str2=str1.PadLeft(str1.Length+1,'"'); string str3=str2.PadRight(str2.Length+1,'"'); Console.WriteLine("填充字符之前:"+str1); Console.WriteLine("左侧填充字符后:"+str2); Console.WriteLine("右侧填充字符后:"+str3); Console.ReadLine(); }}
0 0
- C#-format-填充字符串---ShinePans
- C#-format-分隔字符串---ShinePans
- C#-format-删除字符串---ShinePans
- C#-format---ShinePans
- C#-截取字符串----ShinePans
- C#-字符串的加解密,DES标准,DESCryptoServiceProvider---ShinePans
- C#-二维数组---ShinePans
- C#-ASCII,unicode---ShinePans
- C#-TabControl---ShinePans
- C#---Mandelbrot---ShinePans
- C#-控制台-插入排序---ShinePans
- C#-控制台-选择排序---ShinePans
- C#-电话本-Console App---ShinePans
- C#-Label-标签格式---ShinePans
- C#-numericUpDown-数字选择---ShinePans
- C#-CheckBox-兴趣选择---ShinePans
- C#-comboBox-下拉列表---ShinePans
- C#-树视图TreeView---ShinePans
- 根据文件夹大小停止某进程
- 【DP】最大子数组Maximum Subarray
- Object类
- 摄像机标定
- VC++常用数据类型及其操作详解
- C#-format-填充字符串---ShinePans
- java快速排序
- js面试题
- Android常见错误
- ZOJ 3321 Circle
- java接口和抽象类
- 中文字符编码的相互转换(一)
- JAVA类实现序列化的方法
- C语言编译时的字对齐现象