📌  相关文章
📜  检查 sesison python 代码示例中是否存在密钥

📅  最后修改于: 2022-03-11 14:47:14.907000             🧑  作者: Mango

代码示例2
# Check if key exists
if session.get("key") == None:
    # Do something if it doesnt exist
else:
    # Do something else if it does exist