博客 / 列表

codists - 《Grokking Concurrency》讀後感

一、 為什麼讀這本書? 1.在工作項目中,有些項目用多線程(如:threading.Thread) , 有些項目用(如:multiprocess.pool), 也有些項目用到協程(如:asyncio)。但是什麼時候用哪種技術,自己還不是很瞭解,從而就無法判斷這樣用到底好不好,所以想找本書看看,從而梳理清楚。 2.曾經有一個 Python 項目,雖然用了多進程,但是還是出現了請求處理不過來的情況,雖

Python

codists - 在 Pycharm 中 debug Scrapy 項目

緣起 為什麼寫這篇文章呢?因為自己想在 Scrapy 項目裏 debug, 看看 Response 有哪些屬性。但是 Scrapy 的官方文檔的 debug 説明只有 VSCode 的,沒有 Pycharm 的(詳見:https://docs.scrapy.org/en/latest/topics/debug.html): { "version": "0.1.0", "config

Python

codists - 以 Core i9-13900HX 實例講解CPU概念:物理CPU,內核,邏輯CPU

緣起 # 完整代碼見:https://github.com/luminousmen/grokking_concurrency/blob/master/Chapter%205/password_cracking_parallel.py def crack_password_parallel(crypto_hash: str, length: int) - None: """Orchestr

Python

codists - 2025年11月文章一覽

2025 年 11 月編程人總共更新了 3 篇文章: 1.2025年10月文章一覽 2.《Learn Python Programming(4th)》讀後感 3.Pycharm錯誤:JetBrains AI URL resolution failure 本月在讀:《Python深度學習》和《Grokking Concurrency》。 時間就像一把迴旋鏢,2018年就買了《Python深度學習》,

Python

codists - Pycharm錯誤:JetBrains AI URL resolution failure

問題描述 時間 2025/11/25 Pycharm 版本 2025.2.4 問題 Pycharm AI Assistant 找不到輸入框,提示:Error: 451 Exception during request to https://api.jetbrains.ai/ping with code 451, id: Unknown。 原因分析 HTTP 451 狀態碼的意思是:Unavail

Python

codists - 《Learn Python Programming(4th)》讀後感

一、 為什麼讀這本書? 之所以選擇讀這本書是因為“例行慣例”——讀每年新出版的Python相關書籍,嘗試從這些書中收集一些好的示例,幫助理解一些不好理解的概念。 當然,其實《Learn Python Programming(4th)》(中譯名:《Python編程入門與實戰》,Packt Publishing 出版社)是 2024年 9 月 24 日出版的,只是 2024 年沒有讀,推到了 2025

Python

codists - RabbitMQ的Overview Totals是空

一、問題描述 RabbitMQ 版本:4.0.2,Erlang 版本:26.2.5.4。 RabbitMQ 頁面管理(rabbitmq_management)的 Overview Totals 是空: 二、原因分析 RabbitMQ 的配置: management_agent.disable_metrics_collector = true 導致。將 management_agent.disa

rabbitmq , go

codists - 《計算機組成及彙編語言原理》閲讀筆記:p177-p177

《計算機組成及彙編語言原理》學習第 13 天,p177-p177 總結,總計 1 頁。 一、技術總結 1.real mode A programming model where the program has access to the entire capability of the machine, bypassing security and memory management. Usefu

python3.x

codists - 2025年10月文章一覽

2025 年 10 月編程人總共更新了 1 篇文章: 1.2025年9月文章一覽 如果用一句話來形容 10 月,那就是“心裏很着急,想做的太多,但是執行能力跟不上”,“路要一步一步走,飯要一口一口地吃”——還是慢慢來。 歡迎搜索及關注:編程人(a_codists)

Python

codists - 翻譯:《實用的Python編程》01_05_Lists

目錄 | 上一節 (1.4 字符串) | 下一節 (1.6 文件) 1.5 列表 本節介紹 Python 原始數據類型列表(list)。 列表是一種有序的集合。 創建列表 使用方括號 [] 來定義列表字面量。 names = [ 'Elwood', 'Jake', 'Curtis' ] nums = [ 39, 38, 42, 65, 111] 有時候,列表也可以通過其它方法創建。例如:使用字符串

網頁爬蟲 , 人工智能 , 數據結構與算法 , 後端 , Python

codists - 翻譯:《實用的Python編程》01_06_Files

目錄 | 上一節(1.5 列表) | 下一節 (1.7 函數) 1.6 文件管理 大多數的程序需要從某處讀取輸入。本節討論文件訪問。 文件輸入和輸出 打開一個文件: f = open('foo.txt', 'rt') # Open for reading (text) g = open('bar.txt', 'wt') # Open for writing (text) 讀取所有的

網頁爬蟲 , 人工智能 , 數據結構與算法 , 後端 , Python

codists - 翻譯:《實用的Python編程》02_02_Containers

目錄 | 上一節 (2.1 數據類型) | 下一節 (2.3 格式化) 2.2 容器 本節討論列表(list),字典(dict)和集合(set)。 概述 通常,程序必須處理許多對象。 股票的投資組合 股票價格表 這裏有三種主要的選擇(譯註:數據結構)可以使用: 列表。有序的數據。 字典。無序的數據。 集合。互異且無序的數據。 把列表當作容器 當數據順序很重要時,請使用列表。記住,

容器 , 網頁爬蟲 , 人工智能 , 數據結構與算法 , Python

codists - 翻譯:《實用的Python編程》02_04_Sequences

目錄| 上一節 (2.3 格式化) | 下一節 (2.5 Collections模塊) 2.4 序列 序列數據類型 Python 有三種序列數據類型。 字符串:如 'Hello'。字符串是字符序列 列表:如 [1, 4, 5]。 元組:如 ('GOOG', 100, 490.1)。 所有的序列都是有序的,由整數進行索引,並且具有長度。 a = 'Hello'

python3.x , 網頁爬蟲 , 人工智能 , 數據結構和算法 , 後端

codists - 《計算機組成及彙編語言原理》閲讀筆記:p178-p199

《計算機組成及彙編語言原理》學習第 14 天,p178-p199 總結,總計 22 頁。 一、技術總結 1.關於 end 的一點疑問 p178, For example, one instruction (BSWAP) swaps the end bytes in a 32-bit register (specified as an argument), a task that could be

asm

codists - 《計算機組成及彙編語言原理》閲讀筆記:p9-p27

《計算機組成及彙編語言原理》學習第 2 天,p9-p27 總結,總計 19 頁。 一、技術總結 1.quantum physics(量子物理學) (1)quantum(量子) quantum的本意是:c. the smallest amount of sth(量子)。 In physics, a quantum is the minimum amount of any physical entit

計算機

codists - 《Programming from the Ground Up》閲讀筆記:p147-p180

《Programming from the Ground Up》學習第9天,p147-p180總結,總計34頁。 一、技術總結 1.Physical memeory p152, Physical memory refers to the actual RAM chips inside your computer and what they contain. 物理地址指的RAM,即我們買電腦所説的“

編程 , asm

codists - 《Programming from the Ground Up》閲讀筆記:p117-p146

《Programming from the Ground Up》學習第8天,p117-p146總結,總計30頁。 一、技術總結 1.共享函數用法示例 (1)不使用共享函數 linux.s: # filename:linux.s # system call numbers(按數字大小排列,方便查看) .equ SYS_READ, 0 .equ SYS_WRITE, 1 .equ SYS_OPEN,

asm , 編程語言

codists - 《Programming from the Ground Up》閲讀筆記:p103-p116

《Programming from the Ground Up》學習第7天,p103-p116總結,總計14頁。 一、技術總結 1.讀寫文件 (1)linux.s linux.s: #file name:linux.s # system call numbers(按數字大小排列,方便查看) .equ SYS_READ, 0 .equ SYS_WRITE, 1 .equ SYS_OPEN, 2 .

asm , assembly

codists - 《Programming from the Ground Up》閲讀筆記:p19-p48

《Programming from the Ground Up》學習第2天,p19-p48總結,總計30頁。 一、技術總結 1.object file p20, An object file is code that is in the machine's language, but has not been completely put together。 之前在很多地方都看到object fi

asm

codists - 《編譯原理》閲讀筆記:p25-p32

《編譯原理》學習第 5 天,p25-p32總結,總計 8 頁。 一、技術總結 1.lexical lexical這個單詞後續會經常用到,所以首先要搞懂它的英文意思,不然看到中文的“詞法,語法,文法”這三個詞的時候就會懵了——lexical對應這三個裏面的哪一個? (1)lexical: lexicon + al,加al後綴,表明lexical是一個形容詞(adjective)。 (2)lexico

編譯原理

codists - 《編譯原理》閲讀筆記:p19-p24

《編譯原理》學習第 4 天,p19-p24總結,總計 5 頁。 一、技術總結 1.grouping of phases 這裏談到分組(group),那麼就會有一個疑問,分組的依據是什麼?即根據什麼來分組。 (1) front end back end 編譯器包含很多階段(phase)——lexical analyzer, syntax analyzer, semantic analyzer, i

編譯原理

codists - 《編譯原理》閲讀筆記:p18

《編譯原理》學習第 3 天,p18總結,總計 14頁。 一、技術總結 1.assembler (1)計算機結構 要想學習彙編的時候更好的理解,要先了解計算機的結構,以下是本人學習彙編時總結的一張圖,每當學習彙編時,看到“計數器”,“解碼器”,“寄存器”,“數據總線”等概念時,就知道説的這些東西在哪個位置。 (2)assembly code(彙編代碼) p17,Some compilers

編譯原理

codists - 《編譯原理》閲讀筆記:p4-p17

《編譯原理》學習第 2 天,p4-p17總結,總計 14 頁。 一、技術總結 1.structure of compiler 編譯器組成包括:Lexical Analyzer - Syntax Analazer - Semantic tree - Intermediate Code Generator - Machine-Independent Code Optimizer - Code Gene

編譯原理

codists - 《編譯原理》閲讀筆記:p1-p3

《編譯原理》學習第 1 天,p1-p3總結,總計 3 頁。 一、技術總結 1.compiler(編譯器) p1, But, before a program can be run, it first must be translated into a form in which it can be executed by a computer. The software systems that

編譯原理