摘要:
file_obj是Django的上传文件对象,可以作为model表中FileField字段的值 阅读全文
posted @ 2019-02-26 16:31
Leslie-x
阅读(385)
评论(0)
推荐(0)
摘要:
import re u = "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+" def match_by_re(str): pattern = re.compile(u, re.S) res = pattern.findall(string=str) if r... 阅读全文
posted @ 2019-02-26 16:27
Leslie-x
阅读(1717)
评论(0)
推荐(0)
摘要:
查看音频文件的信息(基于本地路径) 也可以把本地路径换成文件的url地址 阅读全文
posted @ 2019-02-26 14:26
Leslie-x
阅读(5813)
评论(0)
推荐(1)