60 秒新知

好文分享 — Automating Python with Google Cloud

如果你想知道怎麼把 Python 程式部署到 GCP(Google Cloud Platform) 的 Serverless 服務的話,可以花點時間閱讀 “Automating Python with Google Cloud” 1 文,該文章將 Google Cloud 所提供的 2 種 Serverless 服

Posted on  Apr 7, 2024  by  Amo Chen  ‐ 1 min read

談 Python 3.12 泛型(Generics)改善的部分

泛型(Generics)是指在定義函式、類別時,不具體指定傳入、回傳值等的型別,而在使用的時候才明確指定型別的功能,是 TypeScript, Java 等程式語言的常見用

Posted on  Apr 5, 2024  by  Amo Chen  ‐ 1 min read

好文分享 — Every dunder method in Python

物件導向程式設計一直是 Python 重點之一,大家肯定或多或少接觸過 def __init__(self), __repr__(self), __str__(self) 這些方法。 這些方法被稱為 dunder methods, 其中 dunder 是 “double underscore” 的複

Posted on  Mar 31, 2024  by  Amo Chen  ‐ 1 min read