發表文章

目前顯示的是 2月, 2025的文章

乙班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"]       ...