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.
我需要生成一个列表,其中包含由字符 A、B、C、D、E、F 组成的所有可能的 4 个字符串。实现这一目标的最佳方法是什么?字符可以使用任意次数。
list("".join(l) for l in itertools.product('ABCDEF', repeat=4))