最新文章
3 篇文章
Python3报错:from urllib import unquote ImportError: cannot import name 'unquote' from 'urllib' (/usr/lib/python3.11/urllib/__init__.py)
在 Python 3 中,unquote 函数已被移至 urllib.parse模块。需要将.py文件中的from urllib import unquote改成from urllib.parse import unquote

Python3报错:from StringIO import StringIO ModuleNotFoundError: No module named 'StringIO'
在 Python 3 中,StringIO 模块已经被移到了 io 模块中。在 Python 2 中,StringIO 是一个独立的模块, 如果用的 Python 3版本,编辑.py文件,将文件中的from StringIO import StringIO改为from io import StringIO
Minio云存储平台文件上传python脚本示例
最近的项目踩坑,留此记录以备后用。
```python
import boto3
from botocore.exceptions import NoCredentialsError
# MinIO服务器的配置信息
minio_endpoint = '地址信息' # 例如 'loca...