iT邦幫忙

python3相關文章
共有 1020 則文章
鐵人賽 自我挑戰組 DAY 3

技術 Day3 -Django Project 建置

前言 昨天我們安裝好了python和虛擬環境,今天我們終於要開始建置Django的project了! Django安裝 一樣接續昨天的,我們先啟用虛擬環境,在開...

鐵人賽 自我挑戰組 DAY 9

技術 Day09: Python注釋總類

Codetags和TODO注釋:Codetags(程式碼標籤)的形式為帶有大寫標籤的注釋。像是TODO並寫上簡短描述可以幫助提示未來須繼續完成工作。另外像是F...

鐵人賽 自我挑戰組 DAY 2

技術 Day 2 - 如何蓋好Django的地基-環境建置

前言 上一章我們稍微了解了Django的架構,和他的特色。今天我們要開始著手建置我們要開發的環境。因為避免一些相容和版本可能會造成的問題,將會使用虛擬環境作為我...

鐵人賽 自我挑戰組 DAY 8

技術 Day08: Python的註解與縮排

縮排:Python與其他語言較不同處為程式區塊是以縮排的方式,而非以大括號的方式。**在PEP8的協定中規定,使用四個空白作為縮排標準,或是使用一個tab。*...

鐵人賽 自我挑戰組 DAY 1

技術 Day 1 - 跟Django say Hi!

簡介 嗨大家好,我本身是一名研究生,這是我第一次參加鐵人賽,平常也沒有寫文章的習慣,以前就一直知道鐵人賽的存在,也常在鐵人賽中收穫許多,不過都不敢踏出舒適圈挑戰...

鐵人賽 自我挑戰組 DAY 7

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

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

鐵人賽 自我挑戰組 DAY 6

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

PEP8命名規則 型式 說明 範例 Class 類別名稱使用大駝峰式命名法 class ExampleClass (object): Modu...

鐵人賽 自我挑戰組 DAY 4

技術 Day04: Python程式碼的格式化

程式碼的格式化對於人的閱讀以及後續的維護都相當重要。雖然都可以達到相同程式目的,但是程式的美觀還是相當重要的。第一種較良好的程式範例: Spam = [‘To...

鐵人賽 Software Development DAY 1

技術 前言:寫出更好的Python!

Day1: 變成更厲害的Python專家...之前先來閒聊一下吧^^ 先來自我介紹一下,小弟三十歲到資策會上課,轉職軟體工程師(之前是在報社當編輯),開發web...

鐵人賽 自我挑戰組 DAY 3

技術 Day03: 程式相關問題該如何提問?

當網路搜尋無法解決掉您的問題時,可以在網路上透過提問方式尋求幫助。在網路上提問解Bug可以當作最後一個選項,因為通常無法得到即時性的回應。若已經用盡其他方法也無...

鐵人賽 自我挑戰組 DAY 2

技術 Day02:我該如何Debug?

Debug的能力是成為一位良好程式設計師非常基礎之技能,此技能必學習演算法或資料結構知識更加重要。Debug的過程其實分為兩個步驟,包含理解Python錯誤訊息...

鐵人賽 自我挑戰組 DAY 1

技術 Day01: 一起寫出乾淨程式碼

如果您已經有一些python基礎能力,且想要了解更多python的知識與秘密。歡迎加入這30天的人生苦短我用python寫出乾淨程式碼。如果沒有python基礎...

技術 Anaconda / Jupyter 安裝教學 2022 (Windows)

Anaconda 是對於python 的初學者十分友善的軟體,他將基本會用到的軟體以及設定都在此軟體內設定完成,因此初學找不用經歷恐怖的設定環境過程,可以專心在...

技術 Python & Airflow 學習筆記_建立簡易 Dag

這邊記錄了該如何建立一個簡易的 Dag,如果有錯誤或更好的寫法,歡迎留言討論 一、Dag 定義 就筆者從官方文件的理解,每個 Dag 可以代表是一個要執行的任務...

技術 Python & Airflow 學習筆記_環境架設

最近接觸到 Airflow 這個工具,順便紀錄一下學習的過程,如果有錯誤歡迎留言指正本文僅限於學術用途,各項參考網址皆有附上連結,若有觸犯版權請留言告知 一、設...

技術 leetcode with python:39. Combination Sum

題目: Given an array of distinct integers candidates and a target integer target,...

技術 leetcode with python:495. Teemo Attacking

題目: Our hero Teemo is attacking an enemy Ashe with poison attacks! When Teemo a...

技術 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 with python:485. Max Consecutive Ones

題目: Given a binary array nums, return the maximum number of consecutive 1's in...

技術 leetcode with python:482. License Key Formatting

題目: You are given a license key represented as a string s that consists of only...

技術 leetcode with python:476. Number Complement

題目: The complement of an integer is the integer you get when you flip all the 0...

技術 leetcode with python:463. Island Perimeter

題目: You are given row x col grid representing a map where grid[i][j] = 1 repres...

技術 leetcode with python:461. Hamming Distance

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

技術 leetcode with python:38. Count and Say

題目: The count-and-say sequence is a sequence of digit strings defined by the re...

技術 leetcode with python:36. Valid Sudoku

題目: Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to b...

技術 leetcode with python:34. Find First and Last Position of Element in Sorted Array

題目: Given an array of integers nums sorted in non-decreasing order, find the st...

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

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

技術 leetcode with python:31. Next Permutation

題目: A permutation of an array of integers is an arrangement of its members into...

技術 leetcode with python:459. Repeated Substring Pattern

題目: Given a string s, check if it can be constructed by taking a substring of i...

技術 leetcode with python:455. Assign Cookies

題目: Assume you are an awesome parent and want to give your children some cookie...