王敏,我喜歡你!!!!!!!!!!!!

王敏,我喜歡你!!!!!!!!!!!!

王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!
王敏,我喜歡你!!!!!!!!!!!!

# 章節1 課時13【Flask URL】必會的小細節知識
# 1、局域網讓其他電腦訪問我的網站
# (1)橋接模式:不使用公網,使用物理連接,相當於局域網
# (2)如果想在局域網下的其他電腦訪問自己電腦上的Flask網站,那麼可以設置
# host="0.0.0.0"
# 2.指定端口號
# (1)默認端口號5000,可以指定prot=其他數值
# 3.url唯一
# (1)如果不加斜槓,那麼在瀏覽器訪問的時候,如果瀏覽器中url最後加了斜槓,
# 就會訪問不到,用戶體驗不好
# (2)搜索引擎會認爲加斜槓和不加斜槓的視爲2個url,而其實不加斜槓和加斜槓
# 的都是同一個url,那麼就會給搜索引擎造成一個誤解,加了斜槓就不會出現沒有斜槓的情況。
# 4."GET"請求和"POST"請求
# 網絡請求有許多方式,get,post,pull,delete等。最常用的就是get和post。
# (1)只會從服務器獲取資源,不會改變服務器的狀態,這種請求方式推薦使用get。
# (2)Post請求會會給服務器提交一些數據或者文件,會對服務器的狀態造成影響,這種請求方式推薦post。
# (3)關於參數傳遞:
# a.get請求是把參數放在url中,通過?xxx=xxx的方式傳遞。不安全。
# b.post會把參數放到formdata中。相比get,避免了被偷瞄的風險,但是可以通過抓包的方式偷看密碼。
# post請求可以發送文件給服務器,增加了風險。
# 5. flask默認get請求,可以設置methods指定請求方式:
# methods=['GET', 'POST']

from flask import Flask, request, url_for, render_template


app = Flask(__name__)
@app.route('/')
def hello_world():
    return url_for("login", next='/')


@app.route('/login/')
def login():
    return "登錄頁面"


@app.route("/post/list/<page>/")
def my_list(page):
    print(url_for("my_list", page=1, count=2))  # 輸出:/post/list/1/?count=2
    return "my_list/%s" % page


@app.route('/post/detail/<id>/', methods=['GET'])
def detail(id):
    return "detail;"

@app.route("/login_login/", methods=['GET'])
def login_login():
    if request.method == 'GET':
        return render_template("login.html")
    else:
        return "Sucess"

if __name__ == '__main__':
    app.run()
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章