[macOS] 如何統一所有資料夾的顯示方式
首先到達 root: / 在 root 你應該會看到主硬碟「Macintosh HD」 按command + j打開顯示方式選項 (view options) 將顯示方式調整好成你喜歡的樣式之後,別忘了按最下方的「做為預設值」 由於每個資料夾都會有一個.DS_Store去存放自己的顯示方式設定 所以我們必須執行下列指令將所有子資料夾的.DS_Store清空 sudo find / -name .D ...
首先到達 root: / 在 root 你應該會看到主硬碟「Macintosh HD」 按command + j打開顯示方式選項 (view options) 將顯示方式調整好成你喜歡的樣式之後,別忘了按最下方的「做為預設值」 由於每個資料夾都會有一個.DS_Store去存放自己的顯示方式設定 所以我們必須執行下列指令將所有子資料夾的.DS_Store清空 sudo find / -name .D ...
在想要連結的特定位置前後加上<div id="{tag}">和</div> 超連結寫法:<a href={URL}#{tag}>...</a> 意即在原本的 URL 後加上「#{tag}」
Question Many times, we need to re-implement basic functions without using any standard library functions already implemented. For example, when designing a chip that requires very little memory space ...
雖然可能是廢話,pass的作用就是沒有作用, 用來填補尚未寫入任何內容的 function 或 loop
str.join(iterable)或{分隔符}.join({可迭代對象}) 範例 " ".join(["Happy", "Birthday", "to", "You"])⇒"Happy Birthday to You" ".".join(["192", "168", "0", "1"])⇒"192.168.0.1" 用 for 宣告 str 物件 "".join(itertools.chain( ...
isinstance(object, classinfo) 注意是 classinfo 不是 string 範例 isinstance("123", str) – True isinstance("123", int) – False Ref https://docs.python.org/3/library/functions.html#isinstance
Question Given an array of integers arr, you’re asked to calculate for each index i the product of all integers except the integer at that index (i.e. except arr[i]). Implement a function arrayOfArray ...
Question In a Binary Search Tree (BST), an Inorder Successor of a node is defined as the node with the smallest key greater than the key of the input node (see examples below). Given a node inputNode ...
Question Given an array of unique characters arr and a string str, Implement a function getShortestUniqueSubstring that finds the smallest substring of str containing all the characters in arr. Return ...
Question You’re testing a new driverless car that is located at the Southwest (bottom-left) corner of an n×n grid. The car is supposed to get to the opposite, Northeast (top-right), corner of the grid ...