{% if not username %}
用户名:
{% else %} 你已经登录了!{{ username }}
{% endif %}