1 import urllib 2 import time 3 import oss2 4 import os 5 import random 6 from pathlib import Path 7 import requests 8 import datetime 9 from decouple import config 10 11 from urllib.parse import unquote 12 13 14 # 标签:python,config,image,bucket,Teams,access,key,path,上传 From: https://www.cnblogs.com/kaka0318/p/17595565.html