逆光飛行的玉珮

导航

2018年10月31日 #

Python开发 標準內建方法 (未完代補)

摘要: abs(number) 絕對值 The abs() method takes a single argument: num - number whose absolute value is to be returned. The number can be: any(iterable) The an 阅读全文

posted @ 2018-10-31 23:55 逆光飛行的玉珮 阅读(108) 评论(0) 推荐(0)

Python开发 基礎知識 3.類別&方法 (bool & str) (未完待續)

摘要: 類別 可使用type()查看 內建 [ 布爾:bool (Boolen) 字串:str (String) 數字:int (Integer) 小數:float 列表:list 元祖:tuple 字典:dict ] 亦可用class宣告新類別 布爾值 (用於比較、邏輯、成員判定之運算) 以 1=True 阅读全文

posted @ 2018-10-31 12:41 逆光飛行的玉珮 阅读(146) 评论(0) 推荐(0)

Python开发 基礎知識 2.變量 ( *arg, **kwargs )

摘要: 變量 *args 和 **kwargs ( *和**為本體,名稱為通俗的名稱約定 ) *args 用於函式定義。 可將不定數量的參數傳遞給一個函數,傳入函式的引數,會先以Tuple物件收集,再設定給參數 若有自訂的tuple引數集,可直接以 函數(*引數集名稱) 代入 **kwargs 可以將關鍵字 阅读全文

posted @ 2018-10-31 12:40 逆光飛行的玉珮 阅读(204) 评论(0) 推荐(0)

Python开发 基礎知識 (未完代補)

摘要: 一、Python基本知識 1.Python屬高階語言,所編築的是字節碼 2.一般狀態statement 終止於換行,如需使用多數行編寫,可在行末加上 \,以表延續 但在 parentheses ( ), brackets [ ] and braces { }中,換行則沒有影響 3.其他語言使用{}來 阅读全文

posted @ 2018-10-31 11:33 逆光飛行的玉珮 阅读(134) 评论(0) 推荐(0)

Python开发<目录>

摘要: Python學習在園內常有源自武沛齐所整理的資料。 地址:http://www.cnblogs.com/wupeiqi/articles/5444685.html Python开发目录:http://www.cnblogs.com/wupeiqi/articles/5433893.html 本系列博 阅读全文

posted @ 2018-10-31 10:27 逆光飛行的玉珮 阅读(201) 评论(0) 推荐(0)