原创 multiprocessing.Event()

`multiprocessing.Event()` 是 Python 中的一個類,用於在多進程之間共享布爾變量。這個類提供了一種簡單的併發原語,允許進程之間進行通信。`multiprocessing.Event()` 包裝了一個布爾變量,可

原创 signal.signal

Python的signal模塊允許您設置信號處理程序,以便在接收到特定信號時執行自定義操作。信號是操作系統向程序傳遞信息的一種方式。在Python中,您可以使用signal.signal()函數註冊信號處理程序,以便在接收到特定信號時執行自

原创 [傳感器]傳感器_1

傳感器獲取數據; 傳感器獲取到的數據,涉及:編碼、表示、關聯、轉化、理解、檢索與增強等各種多媒體處理技術; 傳感器獲取多媒體信息 多媒體信息成爲卷積神經網絡、循環神經網絡、多模態大模型、數據與知識融合方法等智能技術的主要處理對象 多媒體數據

原创 @property_0

@property --> 裝飾器,創建只讀屬性 @property + 方法 --> 方法變爲只讀屬性,防止屬性被修改; class DataSet(object): @property def method_with_prope

原创 How to use Python Decorators_0

Authorization Logging 通過裝飾器可以來打印日誌: from functools import wraps def logit(func): @wraps(func) def with_loggi

原创 How to use Python Decorators_2

類也可以用來構建裝飾器; 現在以一個類而不是一個函數的方式,來重新構建logit; from functools import wraps class logit(object): def __init__(self, logf

原创 Shell for Jenkins_0

#!/bin/bash echo "Hello World !" #! 是一個約定的標記,它告訴系統這個腳本需要什麼解釋器來執行,即使用哪一種 Shell echo 命令用於向窗口輸出文本   chmod +x ./test.sh #使腳

原创 Shell For Jenkins_1

定義變量時,變量名不加美元符號; 變量名和等號之間不能有空格,這可能和你熟悉的所有編程語言都不一樣 --> 簡直有毒!!! 只包含字母、數字和下劃線: 變量名可以包含字母(大小寫敏感)、數字和下劃線 _,不能包含其他特殊字符。 不能以數字

原创 How to use Python Decorators_1

加入了寫入Log文件的Decorators: from functools import wraps def logit(logfile='out.log'): def logging_decorator(func):

原创 Python Decorators Brief

參考的URL:https://www.runoob.com/w3cnote/python-func-decorators.html Decorators --> Pythonic 切入點: 函數 -- 函數中的函數 -- 函數中返回函數 -

原创 How to remove Symbolic Link

要移除軟鏈接(symbolic link)在Linux中,你可以使用以下兩種方法:使用rm命令或者使用unlink命令。 方法一:使用rm命令移除軟鏈接 例如,如果你的軟鏈接名稱是mylink,你可以使用以下命令移除它: rm mylink

原创 工作總結和反思

Date: Apr 13 2023 入職304天 最近和Mentor討論了下未來的職業發展情況,作爲一個Engineer需要做的是要知其然,知其所以然; 尤其是在競爭日益激烈,日益卷的現在; 最終的落點,應該是基礎學科的知識點,通過這種方式

原创 Multi Words Variable Names

Variable names with more than one word can be difficult to read. There are several techniques you can use to make them m

原创 Variable Names

A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Pytho

原创 Python Classes and Objects

Python is an object oriented programming language. Almost everything in Python is an object, with its properties and met