【发布时间】:2025-12-16 10:10:02
【问题描述】:
可能重复:
python random string generation with upper case letters and digits
我需要在 python 中创建一个 8 字节长的随机字符串。
rand_string = ?
我该怎么做?
谢谢
【问题讨论】:
-
这不是与python random string generation with upper case letters and digits 的副本。这个问题想要一个随机字节串,而另一个问题想要一个具有有限字符集的随机字符串。
标签: python