摘要:
from pwdselfservice import settings # /root/桌面/ad-password-self-service/static/img UPLOAD_ROOT = os.path.join(settings.BASE_DIR,'static/img') # my_os= 阅读全文
摘要:
1 后端python生成base64 import os import base64 with open('../static/img/user-icon.jpg','rb') as f: data=f.read() encodesstr=base64.b64encode(data) # 转换 pr 阅读全文