(2)result = session.get('key') :如果內容不存在,將返回None(推薦用法). 所以,使用第二種方法獲取session較好。 from flask import Flask ...
確定! 回上一頁