TC

@TC-CODE

Joined on Oct 29, 2023

  • #21 isIPv4Address 題目 : An IP address is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. There are two versions of the Internet protocol, and thus two versions of addresses. One of them is the IPv4 address. Given a string, find out if it satisfies the IPv4 address naming rules. 範例 : For inputString = "172.16.254.1", the output should be solution(inputString) = true; For inputString = "172.316.254.1", the output should be solution(inputString) = false; 解法 :
     Like  Bookmark
  • #3 checkPalindrome 題目 : Given the string, check if it is a palindrome.(檢查字串是否對稱) 範例 : For inputString = "aabaa", the output should be solution(inputString) = true; For inputString = "abac", the output should be solution(inputString) = false; 解法 : 先初始化左右位置,透過逐一比較並向中心移動若都沒有出現FALSE 則表示是palindrome
     Like  Bookmark
  • image 來源網站 公開資訊觀測站 - 臺灣證券交易所 爬取資源 :採用IFRSs後每月營業收入彙總表 image 完整程式碼我有放在 github上
     Like 1 Bookmark
  • 前言 這裡主要是一些紀錄 & 解題思緒關於 Codesignal<span class="code-icon"><i class="fa fa-code fa-fw"></i></span> 網站 : CodeArcade 語言 : Python3 適合對象 : 適合對基礎語法(if、for、while 和比較運算符)有基本概念,但還對演算法沒有概念,覺得LeetCode太難的程式初學者 分類 Intro 3-20 Intro 21-40
     Like  Bookmark
  • 當你辛苦寫好一支程式碼時,有時還要構思該如何寫RERADME讓每個協作者能夠快速理解,但文字終究是沒有圖片來的好理解,但流程圖也必須花費時間思考及呈製作,今天就用一點時間教大家如何用一分鐘快速為自己的專案或程式製作精美的流程圖 範例程式碼 範例為一支Flask 程式碼描述了一個簡單的 Web 應用程序,它允許用戶上傳 CSV 文件、選擇統計測試,並查看測試結果,程式碼僅節錄一段 #....前段略 @app.route('/T', methods=['GET', 'POST']) def test(): if request.method == 'POST': # 執行你想在提交表單時進行的操作
     Like 1 Bookmark
  • ✏1.基本語法 SELECT 選取關鍵字(欄位) 查詢{選取多個 a,b,c 用逗號隔開} FROM 從哪個資料表 LIMIT限制顯示筆數 SELECT column_names AS NEW_NAME FROM table_name LIMIT 5; DISTINCT 省略查詢結果中重複的資料,只顯示類別不會有重複的觀測值
     Like  Bookmark