from django.utils.http import urlquote a = urlquote('分享') print(a) 转载于:https://www.cnblogs.com/sea-stream/p/9973938.html