Python - super | 冪等 | 跳轉(zhuǎn)&重定向 | self | mysql基本操作

1.super

  • super(cls,inst)獲得是clsMRO(Method Resolution Order)列表中的下一個(gè)類(+1)

2.什么是冪等?

  • 在相同的數(shù)據(jù)和參數(shù)下,執(zhí)行一次或多次產(chǎn)生的效果是一樣的。

3.GNOME:GNU Network Object Model Environment

4.跳轉(zhuǎn)和重定向
①跳轉(zhuǎn)是什么(301)?

  • 為了保證用戶的訪問,將舊網(wǎng)址在廢棄前轉(zhuǎn)向新網(wǎng)址,舊網(wǎng)址大多數(shù)情況下會(huì)永久性移走。

②重定向是什么(302)?

  • 表示頁面只是暫時(shí)性被轉(zhuǎn)移。

UNDERSTANDING SELF AND INIT METHOD IN PYTHON CLASS.

①Object is one of instances of the class,which can perform the functionalities which are defined in the class.

②self represents the instance of the class.By using the self keyword we can access the attributes and methods of the class in python.

__init__ is a reserved method in python classed.lt is known as a constructor in object oriented concepts.This method called when an object is created from the class and it allow the class to initialize the attributes of a class.

④Usage of "self" in class to access the methods and attributes.

need_for_speed.png
rectangle.png

6.mysql
①如何創(chuàng)建一個(gè)數(shù)據(jù)庫?

  • create database GradeManager;

②如何切換到該數(shù)據(jù)庫?

  • use GradeManager;

③如何修改一個(gè)表中的字段的長度?

修改字段的長度.png

④查詢表中的數(shù)據(jù)

查詢表中的數(shù)據(jù).png

⑤增加和刪除表中的一個(gè)字段

增加和刪除表中的字段.png

⑥向表中插入一條記錄

向表中插入一條記錄.png

⑦刪除Grade表中課程編號(hào)為1的記錄。

刪除Grade表中課程編號(hào)為1的記錄.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 作為對(duì)CLI沒有系統(tǒng)性認(rèn)識(shí)的新人,在學(xué)習(xí)過程中,可能出現(xiàn)終端顯示“進(jìn)程已完成”,不讓你輸入一個(gè)字兒,而iTerm2...
    劉大帥閱讀 11,210評(píng)論 3 2
  • 暑假奇譚(1) 暑假,是2001年的暑假,時(shí)間從七月到八月約一個(gè)月的時(shí)間。奇譚:奇談,翻譯成通俗語就是胡說八道。 ...
    MJ老段閱讀 520評(píng)論 1 9
  • 《斷舍離》是山下英子的作品,很早之前就聽別人提起這本書了,剛好云端仙子又送了我這本書,要好好學(xué)習(xí)學(xué)習(xí)。 (一)第一...
    鳳兒DuDu閱讀 1,001評(píng)論 0 1
  • 你的一舉一動(dòng)對(duì)孩子的影響有多大?可能比你想象的要大的多。 記幾件小事。 掏耳朵 安安兩歲了,最近喜歡角色扮演。家里...
    袁思揚(yáng)閱讀 597評(píng)論 1 6

友情鏈接更多精彩內(nèi)容