1.super
-
super(cls,inst)
獲得是cls
在MRO(Method Resolution Order)
列表中的下一個類(+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ù)情況下會永久性移走望蜡。
②重定向是什么(302)唤崭?
- 表示頁面只是暫時性被轉(zhuǎn)移。
①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.
6.mysql
①如何創(chuàng)建一個數(shù)據(jù)庫脖律?
create database GradeManager;
②如何切換到該數(shù)據(jù)庫谢肾?
use GradeManager;
③如何修改一個表中的字段的長度?
④查詢表中的數(shù)據(jù)
⑤增加和刪除表中的一個字段
⑥向表中插入一條記錄
⑦刪除Grade表中課程編號為1的記錄小泉。