原创 FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate

報錯信息 FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecate: 點擊鏈接,將裏面的np.dtype([("quint8", n

原创 在Qt學習過程中遇到斜體與粗體無法實現問題?

在Qt學習過程中遇到斜體與粗體無法實現問題? 解決辦法將控件屬性由textEdit改成plainTextEdit,繼而修改相關代碼如下圖所示就OK了。 void QWDialog::on_checkBox_clicked(boo

原创 統計以下list單詞及其湧現的次數。

統計以下list單詞及其湧現的次數。 a=[‘apple’, ‘banana’, ‘apple’, ‘tomato’, ‘orange’, ‘apple’, ‘banana’, ‘watermeton’] 方案一: a = ['a

原创 Python生成器,Python斐波拉契數列

0.range() 函數,其功能是創建一個整數列表,一般用在 for 循環中 語法格式:range(start, stop, step),參數使用參考如下: start: 計數從 start 開始。默認是從 0 開始。例如rang

原创 linux中檢查目錄文件是否存在不存在則創建,並寫入相關配置

linux中檢查目錄文件是否存在不存在則創建,並寫入相關配置 #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <unistd.h>