如何用所需字符填充字符串
我需要获取带有 8 个“*”符号的字符串。我如何在 .NET 3.5 中做到这一点? .NET 4.0?
谢谢。
I need to get string with 8 '*' symbols. How can I do that in .NET 3.5? .NET 4.0?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试:
Try:
我自己的快速解决方法:
:)
但我想这应该是更好的解决方案。
谢谢。
My own quick workaround:
:)
But I guess it should be better solution.
Thanks.
这对我有用:
This worked for me: