std::iter::repeat('x').take(len).collect::<String>()
来源:https://users.rust-lang.org/t/fill-string-with-repeated-character/1121
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo