超連結至網頁的特定位置
- 2022.02.10
- HTML
在想要連結的特定位置前後加上<div id="{tag}">和</div> 超連結寫法:<a href={URL}#{tag}>...</a> 意即在原本的 URL 後加上「#{tag}」
在想要連結的特定位置前後加上<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 ...
交換兩個變數 a, b = b, a 先運算完等號右邊才賦值給等號左邊