diff options
| author | 张智皓 <[email protected]> | 2023-04-17 03:50:52 +0000 |
|---|---|---|
| committer | 张智皓 <[email protected]> | 2023-04-17 03:50:52 +0000 |
| commit | fdfa0361344c5a7249ad466527b68b5456731374 (patch) | |
| tree | 1df0e70bf2b0182056819166b316f3267628b477 | |
| parent | 5b6287e747a805afa2c55cb45e1c11219642e026 (diff) | |
上传新文件
| -rw-r--r-- | repo/2000.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/repo/2000.py b/repo/2000.py new file mode 100644 index 0000000..66734bc --- /dev/null +++ b/repo/2000.py @@ -0,0 +1,9 @@ +import random +import string + +# 生成2000个随机字符 +random_chars = ''.join(random.choices(string.ascii_letters + string.digits, k=2000)) + +# 将结果写入txt文件 +with open('random_chars.txt', 'w') as f: + f.write(random_chars) |
