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 – Iteration , Iterable & Iterator

2022-07-212022-07-21 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 原來一個 For 迴圈的知識量這麼大. 先來看看什麼是 Iteration , Iterable 與 Iterator 參考文章 – https://medium.com/citycoddee/python%E9%80%B2%E9% […]

Read more

Python – Iterable yield

2022-07-212022-07-21 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 原來一個 For 迴圈的知識量這麼大. 先來看看什麼是 Iteration , Iterable 與 Iterator 參考文章 – https://medium.com/citycoddee/python%E9%80%B2%E9% […]

Read more

Python – Iterable __getitem__() method

2022-07-212022-07-21 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 原來一個 For 迴圈的知識量這麼大. 先來看看什麼是 Iteration , Iterable 與 Iterator 參考文章 – https://medium.com/citycoddee/python%E9%80%B2%E9% […]

Read more

Python – List Comprehension

2022-07-112022-08-23 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 參考文章 – https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions List Comprehension 語法可以依據需求快速建立 list ,會使 […]

Read more

Python – lambda & filter , map , reduce

2022-07-082022-08-23 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 參考文章 – https://medium.com/seaniap/python-lambda-%E5%87%BD%E5%BC%8F-7e86a56f1996 與 https://www.learncodewithmike.com/2019/1 […]

Read more

Python – IF , ELIF & ELSE 與 Ternary Operator

2022-07-082022-08-17 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 下面來看一下 IF , ELIF & ELSE 的使用方式, 參考文章 – https://www.programiz.com/python-programming/if-elif-else 範例 : IF 說明: 上方程式透過 IF […]

Read more

Python – print 函式

2022-07-072022-07-19 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) print 函式 它是 Python 的內建函式– https://docs.python.org/zh-tw/3.11/library/functions.html#print 使用方式如下. 參考文章 – https://openhome. […]

Read more

Python – sys.path

2022-07-052022-07-05 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) sys.path 是 python 可搜尋模組的路徑,其儲存資料格式為 list , 其中的 path[0] 為程式所在的路徑. 參考文章 – https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8 […]

Read more

Python – sys.argv

2022-07-042022-07-11 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) Python 要如何讀取從 command Line 命令列讀取 arguments(引數) , 如 python3 argv.py one two three , argv.py one two three 皆為 arguments(引數) […]

Read more

Python – for in & range class

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

Loading

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

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.