一、對象 = 屬性(靜態(tài)) + 方法(動態(tài)) 二、OO(object oriented) 面向?qū)ο?的特征 1)封裝 2)繼承 3)多態(tài) 三、對象中的屬性和方法,在編程中實際...
一、對象 = 屬性(靜態(tài)) + 方法(動態(tài)) 二、OO(object oriented) 面向?qū)ο?的特征 1)封裝 2)繼承 3)多態(tài) 三、對象中的屬性和方法,在編程中實際...
1. os模塊中關于文件目錄函數(shù)使用 1) os.getcwd() 返回當前工作目錄 >>> import os >>> os.getcwd() 'D:\\Pathon軟件...
1. 集合(set)集合的顯著特點是:里面元素無重復 1)set的創(chuàng)建 >>> num2 = {1, 2, 4, 5, 6, 7, 5, 4, 3, 2, 1, 0} >>>...
1. 創(chuàng)建元祖 1).fromkeys() 通過一個可迭代參數(shù)和一個可選參數(shù),將創(chuàng)建一個值相同字典 eg: >>> dict1 = {} >>> dict1.fromkey...
1. 函數(shù)中的局部變量和全局變量 >>> count = 3 >>> def MyFun(): global count count = 10 print(count) >>...
parameter 形式參數(shù) argument 實際參數(shù) 1. 函數(shù) >>> def add(num1, num2): result = num1 + num2 p...
octonary ['ɑkt?,n?ri] adj. [數(shù)] 八進制的;八的;由八組成的n. 八個一組;八行詩 hexadecimal [,h?ks?'d?s?ml] ad...
1. 從列表刪除元素 .insert(位置,' ') .remove() del 語句 .pop() .count(' ') .index(' ', start, end) ...
1. Python數(shù)據(jù)類型轉(zhuǎn)換 2. Python的算術操作符 1)+、- 、* 、/ 、% 、 **(乘冪運算符) 、//
1. 分頁查詢 假設每頁顯示n條記錄,當前要顯示的是第m頁 表名是A,主鍵是A_id select top n * from A where A_id not in (sel...
1. 查詢的順序 select top ... from A join B on ... join C on ... where ...... (where 是對原始數(shù)據(jù)...
1. 順序不能變 select top 3 "E".ename, "E".sal, "S".grade, "D".dname from emp "E" join dept "...
1.select E.ename "員工姓名", D.deptno "部門名稱" from emp "e" join -- join是連接 dept "d" on 1 =...
1. group by 之后 select 中只能出現(xiàn)分組后的整體信息,不能出現(xiàn)組內(nèi)詳細信息 2.select deptno, job, AVG(sal), COUNT(*)...