Recently Updated Pages
Legal AI
法律 AI Legal Assistant ailaw - AI 法律助手 律果科技 - 打造出全球唯一能通過臺灣律師第一試的LLM 練成第一款超懂臺灣法律的LLM,律果實現法務...
pip
Installation Tutorials Install packages in a virtual environment using pip and venv - Python ...
Debug
Debugging assert 可用在程式的條件測試 assert <condition>, <message> : 如果 condition 為 True,沒有作用;如果為 Fal...
Unit Test
單元測試 目的:以隔離主程式的方式,對自訂的函式(function)與方法(method),提供指定的輸入參數與期待的輸出結果,以驗證相關程式碼是否有瑕疵或錯誤。 方法:撰寫額外的測試用...
Phrases 3
A website is producing service errors when loading certain pages. so it might make sense to f...
Cybersecurity 2
事故(後)報告撰寫(Writing effective postmortems) What happened and when Who was affected ...
Tips
編碼 UTF-8 宣告 #!/usr/bin/python # -*- coding: utf-8 -*- Find all installed modules help("module...
Errors and Exceptions
適用實例: A file doesn’t exist A network or database connection fails Your code receiv...
Course 2
Understanding Slowness Slow Web Server ab - Apache benchmark tool ab -n 500 site.example.com ...
Binary Search
二分搜尋(Binary Search)是一種高效的搜尋演算法,用於在已排序的串列(List)中尋找特定元素的位置或值。 前提條件: 資料集合必須是已排序的,可以是升序或降序排列。這是因為二分...
List 串列
串列是任何類型元素的序列,並且是可變的。用於儲存項目集合,它們可以包含任何型別的資料,並以方(中)括號表示。 a = [1, 2, 3, 4, 5] b = ['mango', 'pinea...
Regular Expression
Basic Regex Character types \w matches with any alphanumeric character, including underline ...
Datetime
時間格式代碼 %d:以十進製表示的月份中的第幾天,填充零。 %m:十進製表示的月份,零填充。 %y:以零填充的十進製表示法的年份的最後兩位數字。 %Y:以十進製表示的四位年份數字,零...
String 字串
字串是字元序列且是不可變的。以單引號或雙引號括起來的多個字元的集合,可以包含字母、數字和特殊字元。 Concatenate secret_password = 'jhk7GSH8ds' p...
Examples
登入紀錄報告 Custom Class Dictionary/Set/List Data Set Methods def get_event_date(event): re...
Cybersecurity Certificate
Google Cybersecurity Certificates (GCC) Google 資安證書 啟動台灣資安人才培育計畫 資訊安全人才教育 - Google 安全中心 Goo...
Dictionary 字典
不像序列是由一個範圍內的數字當作索引,dictionary 是由鍵 (key) 來當索引,鍵可以是任何不可變的類型;字串和數字都可以當作鍵。Tuple 也可以當作鍵,如果他們只含有字串、數字或 ...
Vim 高級技巧
常用技巧 命令執行(注意大小寫不同) 使用說明 使用技巧 i 以插入字元方式進入編輯模式 與 a 同為進入編輯模式,兩者差別只有游標的起始位置不同 ...
vimrc
vimrc simple " " Fixed for Python virtualenv as the follow error. " ModuleNotFoundError: No mo...
Pentesters
Search Engines