Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用:(^10).map({0})生成一个包含 10 个“0”的列表。还有另一种方法吗?
(^10).map({0})
0 xx 10
生成编号为零的 10 个整数的列表。
'0' xx 10
生成由单个字符“0”组成的 10 个字符串的列表。
请参阅中xx缀操作文档。
xx
'0' x 10
生成由 10 个“0”字符组成的单个字符串。
请参阅中x缀操作文档。
x