python

制霸 Python f-string 各種格式使用方法

開發程式時,字串的輸出經常會需要做一些格式(format),例如數字加上千分位符號、百分比,又或者需要置左、置中、置右對齊等等,這些需求 Python 也都有照顧到,本文將介紹 Python 如何做字串的格式化以及各種範例,讓大家都能夠輕鬆完成字串的格式化!

Last updated on  Apr 9, 2024  in  Python 程式設計 - 初階  by  Amo Chen  ‐ 5 min read

有趣的生成式影像應用 - 無限縮放(Infinite Zoom)

The Infinite Zoom Effect - Using generative AI and outpainting for creating stunning zoom animations 這篇文章的作者介紹如何用生成式的影像產生 1 張又 1 張的圖中圖,例如第 2 張圖會包含第 1 張圖,第 3 張圖會包含第 2 與第

Posted on  Jul 21, 2023  by  Amo Chen  ‐ 1 min read

Python 會取代 Go 嗎?

先說我的看法,我認為 Python 不會取代 Go ,同樣地, Go 也不會取代 Python 。 +12,000 Developers declare that Python will replace Go (Here is Why) 一文根據 Go 官方做的問卷調查結果,探討 Go 為什麼有機會取代 Python ,總

Posted on  Jul 14, 2023  by  Amo Chen  ‐ 2 min read

好文分享 - Automating Kubernetes Deployments using Python

Automating Kubernetes Deployments using Python 一文介紹如何用 Python 的 kubernetes 套件自動化控制 K8s 的相關資源(resource),其中包含 Deployment, Service, ConfigMap, Secret, Ingress 等 5 大資源,基本上是部署應用程式到 K8s 上時經常

Posted on  Jul 8, 2023  by  Amo Chen  ‐ 1 min read

NLTK(Natural Language Toolkit) 之外的選擇 - spaCy

談到 Python 的自然語言處理(Natural Language Processing, NLP)套件,大家應該都會想到 NLTK 套件,不過現在也可以考慮使用 spaCy 做為主力。 spaCy 強調其提供「工業級」的自然

Posted on  Jun 24, 2023  by  Amo Chen  ‐ 1 min read