摘要: string a = "hello}"; string s = string.Format($"{a}"); 上面这种情况,会报格式错误,会把hello}中的}当做一个字符串结束; 结果: 修改: string a = "hello}"; string s = string.Format("{0}" 阅读全文
posted @ 2021-04-21 20:52 darkif 阅读(390) 评论(0) 推荐(0) 编辑