前言 昨天我們安裝好了python和虛擬環境,今天我們終於要開始建置Django的project了! Django安裝 一樣接續昨天的,我們先啟用虛擬環境,在開...
Codetags和TODO注釋:Codetags(程式碼標籤)的形式為帶有大寫標籤的注釋。像是TODO並寫上簡短描述可以幫助提示未來須繼續完成工作。另外像是F...
前言 上一章我們稍微了解了Django的架構,和他的特色。今天我們要開始著手建置我們要開發的環境。因為避免一些相容和版本可能會造成的問題,將會使用虛擬環境作為我...
縮排:Python與其他語言較不同處為程式區塊是以縮排的方式,而非以大括號的方式。**在PEP8的協定中規定,使用四個空白作為縮排標準,或是使用一個tab。*...
簡介 嗨大家好,我本身是一名研究生,這是我第一次參加鐵人賽,平常也沒有寫文章的習慣,以前就一直知道鐵人賽的存在,也常在鐵人賽中收穫許多,不過都不敢踏出舒適圈挑戰...
Python之禪主要是由Tim Peters於1999年提出,總共20條準則但其實只有19條。透過python的import this也可以看到此20條準則。...
PEP8命名規則 型式 說明 範例 Class 類別名稱使用大駝峰式命名法 class ExampleClass (object): Modu...
程式碼的格式化對於人的閱讀以及後續的維護都相當重要。雖然都可以達到相同程式目的,但是程式的美觀還是相當重要的。第一種較良好的程式範例: Spam = [‘To...
Day1: 變成更厲害的Python專家...之前先來閒聊一下吧^^ 先來自我介紹一下,小弟三十歲到資策會上課,轉職軟體工程師(之前是在報社當編輯),開發web...
當網路搜尋無法解決掉您的問題時,可以在網路上透過提問方式尋求幫助。在網路上提問解Bug可以當作最後一個選項,因為通常無法得到即時性的回應。若已經用盡其他方法也無...
Debug的能力是成為一位良好程式設計師非常基礎之技能,此技能必學習演算法或資料結構知識更加重要。Debug的過程其實分為兩個步驟,包含理解Python錯誤訊息...
如果您已經有一些python基礎能力,且想要了解更多python的知識與秘密。歡迎加入這30天的人生苦短我用python寫出乾淨程式碼。如果沒有python基礎...
Anaconda 是對於python 的初學者十分友善的軟體,他將基本會用到的軟體以及設定都在此軟體內設定完成,因此初學找不用經歷恐怖的設定環境過程,可以專心在...
這邊記錄了該如何建立一個簡易的 Dag,如果有錯誤或更好的寫法,歡迎留言討論 一、Dag 定義 就筆者從官方文件的理解,每個 Dag 可以代表是一個要執行的任務...
最近接觸到 Airflow 這個工具,順便紀錄一下學習的過程,如果有錯誤歡迎留言指正本文僅限於學術用途,各項參考網址皆有附上連結,若有觸犯版權請留言告知 一、設...
題目: Given an array of distinct integers candidates and a target integer target,...
題目: Our hero Teemo is attacking an enemy Ashe with poison attacks! When Teemo a...
題目: A web developer needs to know how to design a web page's size. So, given a...
題目: Given a binary array nums, return the maximum number of consecutive 1's in...
題目: You are given a license key represented as a string s that consists of only...
題目: The complement of an integer is the integer you get when you flip all the 0...
題目: You are given row x col grid representing a map where grid[i][j] = 1 repres...
題目: The Hamming distance between two integers is the number of positions at whi...
題目: The count-and-say sequence is a sequence of digit strings defined by the re...
題目: Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to b...
題目: Given an array of integers nums sorted in non-decreasing order, find the st...
題目: There is an integer array nums sorted in ascending order (with distinct val...
題目: A permutation of an array of integers is an arrangement of its members into...
題目: Given a string s, check if it can be constructed by taking a substring of i...
題目: Assume you are an awesome parent and want to give your children some cookie...