lt = time.localtime() # 获取日期 uid = str(uuid.uuid4())[:4] # 获取4位uuid字符串 user = request.session.get("user_name"