import copy
copy.deepcopy(spinfo)
MEDIA_ROOT = os.path.join(BASE_DIR, ‘media‘)
srcimgpathSave = "/{comp}/{depart}/upload/{side}/{spcode}.{g}".format(comp=comp,depart=depart,side=side,spcode=spcode,g=g)
import re
width = re.search(r‘[0-9]+w‘,style)
photo = re.search(r‘[a-zA-Z0-9]+.jpg‘,imgPath).group()
[:-1]
style.split("|")[0].split(‘&‘)[0]
path = dict(imgPathdict, **resultPic)
原文:http://www.cnblogs.com/wuqingzangyue/p/5749809.html