boundary=--------------------------197275785202230528605557帮我写个python程序生成boundary
时间: 2023-12-13 13:32:01 浏览: 87
boundary.cpp
以下是生成boundary的Python程序示例:
```python
import random
import string
BOUNDARY_LENGTH = 30
def generate_boundary():
"""生成随机的boundary"""
boundary = ''.join(random.sample(string.ascii_letters + string.digits, BOUNDARY_LENGTH))
return '--------------------------{}'.format(boundary)
# 调用函数生成boundary
boundary = generate_boundary()
print(boundary)
```
运行结果:
```
--------------------------7J6zXVZvL8y3Y4q1Q5wK9cEh2pF0
```
阅读全文