每天的專案會同步到 GitLab 上,可以前往 GitLab 查看。有興趣的朋友歡迎留言 or 來信討論,我的信箱是 nickchen1998@gmail.co...
題目: Given the root of a binary tree, return the postorder traversal of its node...
題目: Given a string s, return the longest palindromic substring in s. 給定一個字串,找出...
今日練習爬蟲,將爬下來的資料傳到資料庫(今日時間不夠,下次上課再進行) BTC價格 import requests from bs4 import Beauti...
前面的文章有學到分類器樣板了今天的例子跟 https://ithelp.ithome.com.tw/articles/10305851 用到的一樣然後會套用 h...
環境準備 Python:3.11.1 套件管理:Poetry(1.6.1) 本文使用環境為 Apple Silicon,並使用 pyenv 安裝 Pytho...
從今天起在此紀錄用python寫leetcode的心路歷程希望能以一天兩三題的速率下去更新讓自己的程式更加精進 題目: Given an array of i...
今天來介紹比較運算元。 Identity and Membership Operators is 和 is not operators 適用於任何 data t...
MediumRelated Topics: Hash Table / Math / StringLeetCode Source 解題想法 LeetCode...
題目: Given a string containing digits from 2-9 inclusive, return all possible le...
題目(5kyu): My friend John and I are members of the "Fat to Fit Club (FFC)&q...
題目: Given an integer n, return a string array answer (1-indexed) where: answe...
在 MongoDB 當中,有著每個 Document 的大小最大為 16 MB 的限制,如果今天你想插入的資料超過 16 MB,MonGODB 提供了 Grid...
HardRelated Topics: Array / Two Pointers / Dynamic Programming / Stack / Monoto...
題目: The Hamming distance between two integers is the number of positions at whi...
題目: Given the root of a binary tree, check whether it is a mirror of itself (i....
# -*- coding: utf-8 -*- import time import random from scrapy.linkextractors im...
題目: Given a string s consisting of words and spaces, return the length of the l...
MediumRelated Topics: Array / Dynamic Programming / GreedyLeetCode Source 解題想法...
會員驗證的 view 和模板已經可用了,但是看上去很簡陋,可以使用一些 CSS 給 HTML 添加點樣式 因為樣式不會改變,所以應該使用靜態檔案,而不是寫在模板...
物件導向程式設計(Object-oriented programming,簡稱OOP)是一種程式語言的功能特性可以將變數和函式組合起來成為新的資料型態,能夠提高...
本文同步刊載於 「為你自己學 Python - 從準備到起飛!」 從準備到起飛! 假設你寫了一個 Python 程式像這樣: # 檔案:hello.py...
[Python] 之旅第9天 上回我們知道 python的"string" ,和 Json 的"dictionary"互...
python的串列類似於其他語言的陣列-array 串列-照順序放的項目所組成,用中括號[ ]表示,[ ]中的個別元素以逗號來區隔串列-順序從0開始計算 例如:...
今天教學Numpy & Pandas & Matplotlib import pandas as pd number = pd.Series([...
這個部落格練習難度明顯比前一份的難度要提升不少也使用到一些共用的概念 首先介紹了工廠模式[燒瓶裡的部落格] 01. 初始化一個 Flask 專案 - 使用工廠模...
題目: Given an integer num, return a string representing its hexadecimal represen...
題目: Given an integer num, repeatedly add all its digits until the result has on...
每天的專案會同步到 GitLab 上,可以前往 GitLab 查看。有興趣的朋友歡迎留言 or 來信討論,我的信箱是 nickchen1998@gmail.co...
題目: Given a pattern and a string s, find if s follows the same pattern. Here...