zoukankan      html  css  js  c++  java
  • C# 收集几条ToString()格式

    string r1 = 1200.ToString("C");//¥1,200.00
    string r2 = 25.ToString("D3");//025
    string r3 = 2500.1231.ToString("F2");//2500.12
    string r4 = 20000.5.ToString("N");// 20,000.50
    string r5 = 0.5.ToString("P");//50%
    string r6 = Guid.NewGuid().ToString("N");//32 位数字:00000000000000000000000000000000
    string r7 = Guid.NewGuid().ToString("D");//连字符分隔的 32 位数字:00000000-0000-0000-0000-000000000000
    string r8 = Guid.NewGuid().ToString("P");//由括在括号中的连字符分隔的 32 位数字:(00000000-0000-0000-0000-000000000000)
    string r9 = Guid.NewGuid().ToString("B");//由连字符,括在大括号分隔的 32 位数字:{00000000-0000-0000-0000-000000000000}
    string r10 = Guid.NewGuid().ToString("X");//四个十六进制值括在大括号,其中第四个值是也括在大括号的八个十六进制值的子集:{0x00000000、 0x0000、 0x0000,{0x00、 0x00 的、 0x00、 0x00 的、 0x00、 0x00 的、 0x00 的、 0x00}}
  • 相关阅读:
    Codeforces 723d [暴力dfs]
    Codeforces 723e [图论][欧拉回路]
    Hihocoder 1035 [树形dp]
    Codeforces 721C [dp][拓扑排序]
    Codeforces 721D [贪心]
    info
    关于string操作
    Floyd求最小环 HDU1599
    Codeforces Round #572 (Div. 2) B Number Circle
    A. XXXXX
  • 原文地址:https://www.cnblogs.com/haosit/p/8398733.html
Copyright © 2011-2022 走看看