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
    • Bash shell script
    • Perl
    • PHP
    • Python
    • Node.JS
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • MariaDB JSON

Python – range class

2022-07-012022-07-01 adminLinux, Python, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 開始學習 Python For 迴圈時,我看不懂以下的範例(程式須注意縮排,建議使用4個空白字元). 不懂 range() 是? ,查了一下它是 Python 的內建型別 – https://docs.python.org/zh-tw/3.11 […]

Read more

Python – self , cls

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

測試環境為 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

測試環境為 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-222022-06-22 adminLinux, Python, RedHat / CentOS

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

Read more

Python – Tuple 資料型態物件

2022-06-172022-06-17 adminLinux, Python, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 參考文章 – https://selflearningsuccess.com/python-tuple/ 在 Python 函式的輸入值 *args 型態為 Tuple , Tuple 跟 List 資料型態物件一樣,但無法新增,刪除,修改其內 […]

Read more

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

2022-06-172022-06-17 adminLinux, Python, RedHat / CentOS

測試環境為 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

測試環境為 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

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

Read more

Python – __new__ & __init__

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

測試環境為 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-06-21 adminLinux, Programming Language, Python, RedHat / CentOS

測試環境為 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 – range class
  • Python – self , cls
  • Python – getattr() , setattr() , hasattr() 與 delattr()
  • Python – passes arguments by assignment
  • Python – Tuple 資料型態物件

近期留言

  • 「菜单加密码」於〈Windows command – BCDEdit〉發佈留言
  • 「N/A」於〈Linux – iperf (Bind to host)〉發佈留言
  • 「topvpn」於〈就是要上網 – OpenVPN ( 二) Client〉發佈留言
  • 「zoeyalee」於〈在 WordPress 使用 Facebook 讚的連結〉發佈留言
  • 「Carter」於〈VMware PXE 安裝〉發佈留言

分類

其他操作

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