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

Programming Language

Python Pandas – 常用的資料存取與 iloc, loc 函數

2023-02-202023-03-09 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 (虛擬機) 參考資料 – https://ithelp.ithome.com.tw/articles/10251663 Pandas 二維陣列 (資料類似 Excel 或是 RDBMS 關聯式資料庫) 常用的資料存取與 iloc, loc , ix 函數 安 […]

Read more

Python Pandas – 一維陣列

2023-02-182023-03-09 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 (虛擬機) 參考資料 – https://ithelp.ithome.com.tw/articles/10233655 Pandas 可以處理兩類的資料 一維陣列 ,使用 Series 物件 ,這邊說明. 二維陣列 (資料類似 Excel 或是 RDBMS […]

Read more

Python – re (Regular Expression) 模組

2023-02-172023-02-17 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentSO 8 (虛擬機) 在 Python 可以透過 re 模組來使用 Regular Expression (正規表達式) 來處理資料, 下面來看一下常用的 re 函數 . re.match(pattern, string, flags=0) 要特別注意這個函數的匹配須從字串的起頭 […]

Read more

Python – re 模組的 Regular Expression 語法

2023-02-172023-02-17 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentSO 8 (虛擬機) 在 Python 可以透過 re 模組來使用 Regular Expression (正規表達式) 來處理資料, 常用的 re 函數請參考 – https://benjr.tw/105370 , 這邊來看一下常用 Regular Expressi […]

Read more

SQLite – User-Defined Functions

2023-02-152023-02-16 adminLinux, Python, RedHat / CentOS, SQLite

Loading

測試環境為 CentSO 8 (虛擬機) SQLite 無法像是 MySQL 或是 MariaDB 使用者自訂函數 ( User-Defined Functions ) ,不過我們可以透過 SQLite 的 extensions – https://github.com/nalgeon/ […]

Read more

Python – 內建 CSV 模組 & Read , Write 方法

2023-02-032023-05-22 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) 這邊看一下 Python 內建的 CSV 模組,參考範例 – https://shengyu7697.github.io/python-write-csv-file/ Writer 先來看一下 Writer 的方法. csvwriter.write […]

Read more

Python – Export SQLite AS CSV File

2023-02-022023-02-03 adminPython, SQLite

Loading

測試環境為 CentOS8 (虛擬機) 怎麼透過 Python 把 SQLiet 的資料匯出成 CSV 格式(CommSeparated Values 以逗號做區隔)的檔案. 我這邊有一個 SQLite 的檔案,裡面有一個資料表 cpu_meminfo 用來記錄目前 CPU 與 MEM 的使用率 ( […]

Read more

Python – psutil (Disk , NetWork)

2023-02-022023-02-02 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) Python 的 psutil (python system and process utilities) 套件是一個可以跨平台讀取系統 關於 CPU 與 memory 請參考 – https://benjr.tw/105251 , disks 與 […]

Read more

Python – psutil (CPU , MEM)

2023-01-312023-02-02 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) Python 的 psutil (python system and process utilities) 套件是一個可以跨平台讀取系統 CPU 與 memory (這邊說明), 其他如 disks 與 network 請參考 – https:// […]

Read more

PowerShell – Invoke-WebRequest

2022-11-292022-11-29 adminPowerShell, Windows

Loading

測試環境 Windows 10 平時在 Linux 環境下會使用 curl (簡易文字版瀏覽器) , 在 Windows 下可以透過 PowerShell 的 Invoke-WebRequest 指令. 如果只需要看 Content ,可以透過以下方式. 如果是要看該網站有提供那些連結,可以透過以下 […]

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.