iT邦幫忙

python3相關文章
共有 817 則文章

技術 leetcode with python:16. 3Sum Closest

題目: Given an integer array nums of length n and an integer target, find three i...

鐵人賽 自我挑戰組 DAY 25
Python淺顯易懂的小教室 系列 第 25

技術 [Day_25]函式與遞迴_(4)

函式的輸入與輸出 函式的輸入 函式中有預設值的輸入參數一定放在後面,預設值要式不可以變的常數,不能為串列或字典等可以修改的資料結構 #input def f(s...

技術 leetcode with python:144. Binary Tree Preorder Traversal

題目: Given the root of a binary tree, return the preorder traversal of its nodes...

技術 leetcode with python:171. Excel Sheet Column Number

題目: Given a string columnTitle that represents the column title as appears in a...

鐵人賽 自我挑戰組 DAY 28

技術 [Day28] Codewars >>> Consecutive k-Primes (Python)

題目(5kyu): A natural number is called k-prime if it has exactly k prime factors,...

鐵人賽 自我挑戰組 DAY 30

技術 [Day30] Codewars >>> 1's, 0's and wildcards (Python)

題目(5kyu): You are given a string containing 0's, 1's and one or more '?', where...

鐵人賽 自我挑戰組 DAY 3

技術 Day03:開始之前

在正式開始之前記得在專案中創建虛擬環境,讓安裝的套件不會被互相影響,獨立的開發空間,是個良好的習慣。首先,先打開終端機,將路徑移動(cd)到要開發的文件夾下,輸...

技術 leetcode with python:19. Remove Nth Node From End of List

題目: Given the head of a linked list, remove the nth node from the end of the li...

技術 MotionNet SourceCode 解讀[#3]-gen_data篇(part III)

adj_seq_cnt += 1 print("adj_seq",adj_seq_cnt) if adj_seq_cnt == num_ad...

技術 leetcode with python:9. Palindrome Number

題目: Given an integer x, return true if x is palindrome integer.An integer is a...

技術 leetcode with python:434. Number of Segments in a String

題目: Given a string s, return the number of segments in the string. A segment...

技術 [LeetCode] 13. Roman to Integer

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

技術 [LeetCode] 27. Remove Element

EasyRelated Topics: Array / Two PointersLeetCode Source 解題想法 題目除了要回傳最後 nums 的長...

技術 leetcode with python:33. Search in Rotated Sorted Array

題目: There is an integer array nums sorted in ascending order (with distinct val...

技術 MotionNet SourceCode 解讀[#2]-gen_data篇(part II)

這篇文章要繼續解讀 MotionNet 中 gen_data的第二部份。 for ann_token in corresponding_sample_rec['...

技術 leetcode with python:136. Single Number

題目: Given a non-empty array of integers nums, every element appears twice excep...

鐵人賽 自我挑戰組 DAY 7

技術 Day07: Python簡單易懂的命名風格

Python之禪主要是由Tim Peters於1999年提出,總共20條準則但其實只有19條。透過python的import this也可以看到此20條準則。...

技術 leetcode with python:492. Construct the Rectangle

題目: A web developer needs to know how to design a web page's size. So, given a...

技術 [LeetCode] 45. Jump Game II

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

鐵人賽 自我挑戰組 DAY 23

技術 [Day23] Codewars >>> Numbers and its Reversal Having Same Prime Factors. (Python)

題目(5kyu): The number 1089 is the smallest one, non palindromic, that has the sa...

鐵人賽 自我挑戰組 DAY 11

技術 Day11 leetcode隨機挑題 (List,Sort,Greedy,Simulation)

首先是 2418. Sort the People (easy)https://leetcode.com/problems/sort-the-people/ 他...

鐵人賽 自我挑戰組 DAY 1

技術 [Day1] Codewars >>> Persistent Bugger (Python)

開場白 筆者非本科系24歲,過去沒有上過正式程式課程的經驗。買了堂線上程式課後決定來寫codewars練習,參加鐵人賽紀錄我學習的日常,長期目標是未來能從0開始...

技術 leetcode with python:28. Implement strStr()

題目: Given two strings needle and haystack, return the index of the first occurr...

技術 leetcode with python:401. Binary Watch

題目: A binary watch has 4 LEDs on the top to represent the hours (0-11), and 6 L...

技術 leetcode with python:70. Climbing Stairs

題目: You are climbing a staircase. It takes n steps to reach the top. Each tim...

鐵人賽 Software Development DAY 29

技術 *args, **kwargs 大集合

學了那麼多天的函式參數(引數),現在來綜合複習一下吧! 位置參數:必填,對應傳入引數的順序: def func(a, b): print(a, b)...

鐵人賽 Modern Web DAY 18

技術 [Day18] OAuth2 實例: OAuth2 Schema & JWT

[Day18] OAuth2 實例: OAuth2 Schema & JWT 本次的程式碼與目錄結構可以參考 FastAPI Tutorial : D...

鐵人賽 AI & Data DAY 1

技術 [Day01] 從 0 開始

本系列文章是針對 Udemy 上的熱門機器學習課程 - Machine Learning A-Z in Chinese 所做的學習筆記因為報名課程許久都未能上完...

鐵人賽 自我挑戰組 DAY 14

技術 Day14: Python少為人知奇異之處

all() 函式傳入空值的資料回傳Trueall() 函式用於判定可迭代參數中的所有元素是否皆為True,若是返回True,否則返回False。all([Fa...