# 刪除 刪除成功 跳轉(zhuǎn)到首頁 def delete(request): # 假設(shè)刪除成功 # 跳轉(zhuǎn)到首頁 # 如果url地址寫死,非常麻煩 """ ...
使用入門 1. 期望 訪問 基于django框架開發(fā)的web網(wǎng)址, 頁面輸出 hello django 通過資源定位符獲取(url) 設(shè)計url: http://127.0....
1. 安裝django a. 版本選擇 1.11 pip install django==1.11 b. 前提 a. 創(chuàng)建虛擬環(huán)境 vir...
1. 安裝python3.6 python.exe -V 查看版本 2. 安裝虛擬環(huán)境 1. 安裝包 和 導(dǎo)入包 原理 pip install 包名 ...
1. django web框架--->快速開發(fā)網(wǎng)站 2. python對django個版本支持 Python2x 與 python3x 對django支持情況 Dja...
Python 筆記七:Requests爬蟲技巧 源碼github地址在此,記得點星:https://github.com/brandonxiang/example-reque...
說明:本實例可從視頻網(wǎng)站爬取相關(guān)視頻碎片,最后拼接成一個完整的視頻,可以是vip視頻。 步驟1:打開某個視頻頁面,如騰訊視頻《一出好戲》(地址:https://v.qq.co...
索引訪問 字符串[索引] 切片訪問字符串[開始,結(jié)束,步長] 判斷字符串是否只包含空格 字符串.isspace() 拆分字符串字符串.split() 將字符串中的原文替換...
末尾添加數(shù)據(jù) 列表.append(數(shù)據(jù)) 索引處插入數(shù)據(jù) 列表.insert(索引,數(shù)據(jù)) 追加一個列表 列表.extend(列表2) 刪除del 列表[索引] 刪除第...
1.字符串 string string是redis最基本的類型 最大能存儲512MB數(shù)據(jù) 注意: a. 字符串可以是 字符串、數(shù)字、圖片、序列化的對象 b. 如果字符串是多個...
1.數(shù)字型 1.1整數(shù)型,int 備注:(unsigned支持無符號整型) tinyint 字節(jié)1,無符號0-255,有符號-128-127 smallint 字節(jié)2,無符號...
庫操作: 創(chuàng)建數(shù)據(jù)庫 create database 庫名 查詢數(shù)據(jù)庫 show databases 查詢建庫語法 show create database 庫名刪除數(shù)據(jù)庫 ...