(email, size=40)
return mark_safe(
        '<img src="%s" height="%d" width="%d">' %
        (url, size, size))
获得gravatar头像
获得gravatar头像
获得gravatar头像
def gravatar(email, size=40):
    """获得gravatar头像"""
    url = gravatar_url(email, size)
    return mark_safe(
        '<img src="%s" height="%d" width="%d">' %
        (url, size, size))
def gravatar ( email , size = 40 ) : url = gravatar_url ( email , size ) return mark_safe ( '<img src="%s" height="%d" width="%d">' % ( url , size , size ) )