發表文章

乙班0225劉任昌利用CHATGPT大語言模型產生程式碼

圖片
劉任昌Canvas 計算機 劉任昌Canvas 計算機 Python陣列方法 Method Description append() Adds an element at the end of the list clear() Removes all the elements from the list copy() Returns a copy of the list count() Returns the number of elements with the specified value extend() Add the elements of a list (or any iterable), to the end of the current list index() Returns the index of the first element with the specified value insert() Adds an element at the specified position pop() Removes the element at the specified position remove() Removes the first item with the specified value reverse() Reverses the order of the list sort() Sorts the list python陣列的方法在撰寫模式貼上 Method Description append() Adds an element at the end of the list clear() Removes all the elements from the list copy() Returns a copy of the list count() Returns the number of elements with the specified value extend() Add the elements of a list (or any iterable), to the end of the current list index() Returns the index of ...

劉任昌chatgpt寫出計算機

劉任昌Canvas 計算機 以上用chatgpt產生的程式碼     <title>劉任昌Canvas 計算機</title>     <style>     canvas { border: 1px solid #000;  }     </style>       <H1>劉任昌Canvas 計算機</H1>     <canvas id="calculatorCanvas" width="320" height="480"></canvas>     <script>         const canvas = document.getElementById("calculatorCanvas");         const ctx = canvas.getContext("2d");         let currentInput = "";         let result = "";         const buttons = [             ["7", "8", "9", "/"],             ["4", "5", "6", "*"],             ["1", "2", "3", "-"],             ["0", ".", "=", "+"],             ["C"]       ...

下午柯文哲期末考Math.PI與Math.E放入計算機

柯文哲學習Bro code製作計算機 + 7 8 9 - 4 5 6 x 1 2 3 ÷ 0 . = 刪 π e ** https://www.youtube.com/watch?v=I5kj-YsmWjM Build this JS calculator in 15 minutes!

劉任昌期末考Math.PI與Math.E放入計算機

柯文哲學習Bro code製作計算機 + 7 8 9 - 4 5 6 * 1 2 3 / 0 . = C ** π e https://www.youtube.com/watch?v=I5kj-YsmWjM Build this JS calculator in 15 minutes!

劉任昌eval()內建函數data type資料型態

劉任昌學習Bro code製作計算機 display.value = eval(display.value) disply的vlue用eval(display.value)取代,算是「字串」運算結果 eval()內建函數(方法) in-line線內設定樣式。readonly唯讀read only。電腦的.的接續術性或函數disply.value面板顯示的內容value值。px=pixel點 + 7 8 9 - 4 5 6 * 1 2 3 / 0 . 算 刪 劉 任 昌 https://www.youtube.com/watch?v=I5kj-YsmWjM Build this JS calculator in 15 minutes!

下午劉任昌學習Bro Code計算機

圖片
劉任昌學習Bro code製作計算機 + 7 8 9 - 4 5 6 x 1 2 3 ÷ 0 . = C ** π e https://www.youtube.com/watch?v=I5kj-YsmWjM Build this JS calculator in 15 minutes! 心得與考試重點 hover滑鼠飛到上hover翱翔 Active 10進位自碼表達÷÷ 247=16*15+7=16*F+7= 字碼CODE 48 60 61 62 65 97 247 248 249 250 字元CHARACTER 0 < = > A a ÷ ø ù ú 0, 60:<,60=48+12=16*3+C, x3C< 61:=, 62:>, 65:A, 97:a, 247:÷, 如果用16進位前面要加上小寫的x 學習要舉一反三 <TABLE BORDER=3><TR><TD>字碼CODE</TD><TD>48</TD><TD>60</TD><TD>61</TD><TD>62</TD><TD>65</TD><TD>97</TD><TD>247</TD></TR> <TR CLASS='CAT'><TD>字元CHARACTER</TD><TD>&#48;</TD><TD>&#60;</TD><TD>&#61;</TD><TD>&#62;</TD><TD>&#65;</TD><TD>&#97;</T...

地表最強帥哥學習Bro Code製作計算機

圖片
劉任昌學習Bro code製作計算機 + 7 8 9 - 4 5 6 * 1 2 3 ÷ 0 . = 刪 劉 任 昌 https://www.youtube.com/watch?v=I5kj-YsmWjM Build this JS calculator in 15 minutes! 心得與考試重點 LIST條列, UL=UNORDERED LIST, OL=ORDERED LIST, BUTTON按鈕, CLICK按下, ONCLICK事件 網頁的命令,大小寫都可以。 刪 <button onclick="clearDisplay()">刪</button> SCRIPT區段有三個自訂的函數 function appendToDisplay(input) { const display = document.getElementById("display"); display.value += input;} function clearDisplay() { const display = document.getElementById("display"); display.value = "";} function calculate() { const display = document.getElementById("display"); try{ display.value = eval(display.value); } catch(error){display.value = "Error";} } 在STYLE區段定義.MY{BACKGROUND-COLOR: PURPLE;}可以用在網頁的CLASS='MY'元件 徘徊 CSS上製造滑鼠在上面就會改片樣式HOVER同義字excurse, hesitate, hover, ling...