Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

Python

Python – self , cls

2022-06-292022-06-29 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 在 Python 中 self 與 cls 的差異說明在 – https://peps.python.org/pep-0008/#function-and-method-arguments Always use self for t […]

Read more

Python – getattr() , setattr() , hasattr() 與 delattr()

2022-06-232022-06-23 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) Python 的內建函式 – https://docs.python.org/zh-tw/3.11/library/functions.html 下面來看一下針對 object 的 getattr() , setattr() , h […]

Read more

Python – Passes Arguments by Assignment

2022-06-222023-05-22 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 在 Python 所有的東西都是物件,所以沒有所謂的 Pass by value (傳入參數的值,原參數內容不會被改變) 或是 Pass by reference (傳入參數的參考,原參數內容會被改變). Python 為 passes arg […]

Read more

Python – Tuple 資料型態物件

2022-06-172022-08-31 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 參考文章 – https://selflearningsuccess.com/python-tuple/ Tuple 跟 List 資料型態物件類似,但 Tuple 為 不可變(Immutable , 關於 Mutable & Imm […]

Read more

Python 引數 – default , *args (*) , **kwargs (**)

2022-06-172022-07-11 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) Python 的引數 可以有 default , *args (*) , **kwargs (**) 下面來看一下範例. 參考文章 – https://skylinelimit.blogspot.com/2018/04/python-args- […]

Read more

Python – Class Decorator & Wrap

2022-06-162022-06-21 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 Syntactic sugar 請參考 – https://zh.wikipedia.org/zh-tw/%E8%AF%AD%E6%B3%95%E7%B3%96 語法糖(英語:Syntactic sugar)是由英國電腦科學家彼得·蘭丁發 […]

Read more

Python – __init__ & __call__

2022-06-092022-06-23 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 下面來看一下 __init__ & __call__ 的使用時機. object.__init__(self[, …]) – https://docs.python.org/3/reference/datamo […]

Read more

Python – __new__ & __init__

2022-06-092022-08-03 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 在 Class 裡 __new__ , __init__ 的差別. object.__new__(cls[, …]) – https://docs.python.org/3/reference/datamodel.htm […]

Read more

Python – Function Decorator & Wrap

2022-06-072022-09-21 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 Syntactic sugar 請參考 – https://zh.wikipedia.org/zh-tw/%E8%AF%AD%E6%B3%95%E7%B3%96 語法糖(英語:Syntactic sugar)是由英國電腦科學家彼得·蘭丁發 […]

Read more

Python – __dict__

2022-06-022022-06-02 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 object.__dict__ 說明 : https://docs.python.org/3/library/stdtypes.html?highlight=__dict__#special-attributes A dictionary […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
  • Privacy Policy
  • 隱私權政策
Powered by WordPress | Theme: Astrid by aThemes.