iT邦幫忙

python3相關文章
共有 1020 則文章
鐵人賽 生成式 AI DAY 8

技術 Day 08 - Embedding & Pinecone 介紹

每天的專案會同步到 GitLab 上,可以前往 GitLab 查看。有興趣的朋友歡迎留言 or 來信討論,我的信箱是 nickchen1998@gmail.co...

技術 leetcode with python:145. Binary Tree Postorder Traversal

題目: Given the root of a binary tree, return the postorder traversal of its node...

技術 leetcode with python:5. Longest Palindromic Substring

題目: Given a string s, return the longest palindromic substring in s. 給定一個字串,找出...

技術 Day28 參加職訓(機器學習與資料分析工程師培訓班),網站設計與網頁工程技術

今日練習爬蟲,將爬下來的資料傳到資料庫(今日時間不夠,下次上課再進行) BTC價格 import requests from bs4 import Beauti...

鐵人賽 AI & Data DAY 27

技術 [Day27] SVM - Example

前面的文章有學到分類器樣板了今天的例子跟 https://ithelp.ithome.com.tw/articles/10305851 用到的一樣然後會套用 h...

鐵人賽 Modern Web DAY 2

技術 Day 2:安裝 Strawberry 環境

環境準備 Python:3.11.1 套件管理:Poetry(1.6.1) 本文使用環境為 Apple Silicon,並使用 pyenv 安裝 Pytho...

技術 leetcode with python:1. Two Sum

從今天起在此紀錄用python寫leetcode的心路歷程希望能以一天兩三題的速率下去更新讓自己的程式更加精進 題目: Given an array of i...

鐵人賽 Software Development DAY 22

技術 Comparison Operators

今天來介紹比較運算元。 Identity and Membership Operators is 和 is not operators 適用於任何 data t...

技術 [LeetCode] 13. Roman to Integer

MediumRelated Topics: Hash Table / Math / StringLeetCode Source 解題想法 LeetCode...

技術 leetcode with python:17. Letter Combinations of a Phone Number

題目: Given a string containing digits from 2-9 inclusive, return all possible le...

鐵人賽 自我挑戰組 DAY 29

技術 [Day29] Codewars >>> Weight for weight (Python)

題目(5kyu): My friend John and I are members of the "Fat to Fit Club (FFC)&q...

技術 leetcode with python:412. Fizz Buzz

題目: Given an integer n, return a string array answer (1-indexed) where: answe...

鐵人賽 Software Development DAY 5
玩轉 Python 與 MongoDB 系列 第 5

技術 玩轉 Python 與 MongoDB_Day05_GridFS 大型資料 & 檔案插入

在 MongoDB 當中,有著每個 Document 的大小最大為 16 MB 的限制,如果今天你想插入的資料超過 16 MB,MonGODB 提供了 Grid...

技術 [LeetCode] 42. Trapping Rain Water

HardRelated Topics: Array / Two Pointers / Dynamic Programming / Stack / Monoto...

技術 leetcode with python:461. Hamming Distance

題目: The Hamming distance between two integers is the number of positions at whi...

技術 leetcode with python:101. Symmetric Tree

題目: Given the root of a binary tree, check whether it is a mirror of itself (i....

技術 Python3----Scrapy,繼承CrawlSpider爬取1111人力

# -*- coding: utf-8 -*- import time import random from scrapy.linkextractors im...

技術 leetcode with python:58. Length of Last Word

題目: Given a string s consisting of words and spaces, return the length of the l...

技術 [LeetCode] 45. Jump Game II

MediumRelated Topics: Array / Dynamic Programming / GreedyLeetCode Source 解題想法...

鐵人賽 Software Development DAY 15

技術 [15] [燒瓶裡的部落格] 05. 靜態檔案

會員驗證的 view 和模板已經可用了,但是看上去很簡陋,可以使用一些 CSS 給 HTML 添加點樣式 因為樣式不會改變,所以應該使用靜態檔案,而不是寫在模板...

鐵人賽 自我挑戰組 DAY 19

技術 Day19:Python的物件導向

物件導向程式設計(Object-oriented programming,簡稱OOP)是一種程式語言的功能特性可以將變數和函式組合起來成為新的資料型態,能夠提高...

鐵人賽 Python DAY 12

技術 Day 12 - 從準備到起飛!

本文同步刊載於 「為你自己學 Python - 從準備到起飛!」 從準備到起飛! 假設你寫了一個 Python 程式像這樣: # 檔案:hello.py...

技術 工程師菜鳥_宇弟的 學習筆記 [Python] 09 - [Python] [Json] 進階說明

[Python] 之旅第9天 上回我們知道 python的"string" ,和 Json 的"dictionary"互...

技術 python的基本語法-1.5-串列

python的串列類似於其他語言的陣列-array 串列-照順序放的項目所組成,用中括號[ ]表示,[ ]中的個別元素以逗號來區隔串列-順序從0開始計算 例如:...

技術 Day12 職訓(機器學習與資料分析工程師培訓班): Python程式設計

今天教學Numpy & Pandas & Matplotlib import pandas as pd number = pd.Series([...

鐵人賽 Software Development DAY 20

技術 [20] [燒瓶裡的部落格] 10. 心得

這個部落格練習難度明顯比前一份的難度要提升不少也使用到一些共用的概念 首先介紹了工廠模式[燒瓶裡的部落格] 01. 初始化一個 Flask 專案 - 使用工廠模...

技術 leetcode with python:405. Convert a Number to Hexadecimal

題目: Given an integer num, return a string representing its hexadecimal represen...

技術 leetcode with python:258. Add Digits

題目: Given an integer num, repeatedly add all its digits until the result has on...

鐵人賽 生成式 AI DAY 7

技術 Day 07 - LangChain 中的 Chain

每天的專案會同步到 GitLab 上,可以前往 GitLab 查看。有興趣的朋友歡迎留言 or 來信討論,我的信箱是 nickchen1998@gmail.co...

技術 leetcode with python:290. Word Pattern

題目: Given a pattern and a string s, find if s follows the same pattern. Here...