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 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

Python – 執行 MySQL Stored Procedure

2022-11-232022-11-24 adminLinux, MariaDB, Mysql, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) , MariaDB 10.3.28 在 Python 中要怎麼去執行 MySQL(MariaDB) 的 Stored Procedure , 參考文章 https://pynative.com/python-mysql-execute-stor […]

Read more

Python – TextBlob 的 拼字檢查 Spelling Correction

2022-11-222023-05-19 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) TextBlob 的 拼字檢查 是它綜多功能的其中一種,參考文章 – https://textblob.readthedocs.io/en/dev/quickstart.html#spelling-correction 首先安裝 t […]

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.