原创 fix:error: Libtool library used but 'LIBTOOL' is undefined

solve 使用apple 的自己的libtool 就是不行,我 brew install libtool 就行了: 他會 用g 來區分 和 apple 本身 的不衝突: 並且在使用auto 工具的時候,也會自動使用 新bre

原创 net: nat

原创 cryp: rsa

from youtu; android authority

原创 py: np.argmax()

https://blog.csdn.net/weixin_38145317/article/details/79650188 1.對一個一維向量 import numpy as np a = np.array([3, 1, 2,

原创 py: np.random.choice方法

np.random.choice方法 覺得有用的話,歡迎一起討論相互學習~Follow Me def choice(a, size=None, replace=True, p=None) 表示從a中隨機選取size個數 repl

原创 tool: xcode-select

$ sudo rm -rf /Applications/Xcode.app 這之後,運行git,報錯了 $ git xcrun: error: active developer path ("/Applications/Xcode

原创 py:全局變量

一道本來想用全局變量的題目 class Solution: my_sum = 0 def convertBST(self, root: TreeNode) -> TreeNode: global m

原创 py:你可以用` if x is not None`

ref https://blog.csdn.net/sasoritattoo/article/details/12451359 note 代碼中經常會有變量是否爲None的判斷,有三種主要的寫法: 第一種是if x is None

原创 and: dagger 抄襲1

文章目錄refnotes什麼是依賴注入依賴注入的實現方式基於構造函數,在構造對象時注入所依賴的對象。基於 set 方法,使用 setter 方法來讓外部容器調用傳入所依賴的對象。基於接口,使用接口來提供 setter 方法。基於註

原创 設計模式: 建造者: builder

文章目錄refnoteintro意圖:主要解決:何時使用:如何解決:關鍵代碼:應用實例:優點:缺點:使用場景:注意事項:demo ref 主要原文: https://www.runoob.com/design-pattern/bu

原创 tools: USB、MiniUSB、MicroUSB接線

文章目錄refnotes ref https://blog.csdn.net/softimite_zifeng/article/details/53157348 notes

原创 py:操作本目錄文件時候避開子目錄

#!/usr/bin/python # -*- coding: UTF-8 -*- import re import os from stat import * list1 = os.listdir(os.getcwd())

原创 py:打開文件後,可以乾的事情

File對象的屬性 一個文件被打開後,你有一個file對象,你可以得到有關該文件的各種信息。 以下是和file對象相關的所有屬性的列表: 屬性 描述 file.closed 返回true如果文件已被關閉,否則返回false。 fi

原创 tools: keepass

https://zhuanlan.zhihu.com/p/93912803 關於密碼安全相關的內容,我寫過如下文章: 爲什麼幣圈人必須要用一個密碼管理器?| 抱着炸彈生活 爲什麼 1Password 給我帶來了很大的幸福感? 【重