[Pygame] 下載並執行 Hello World 程式
Pygame 是一個使用 Python 來撰寫的多媒體遊戲引擎,不過大部分時候我們比較常使用 Coco2d、Unity 3D、Unreal ...... 等等著名的遊戲引擎來開發『正式一點的遊戲』。
Read More »[Pygame] 下載並執行 Hello World 程式Pygame 是一個使用 Python 來撰寫的多媒體遊戲引擎,不過大部分時候我們比較常使用 Coco2d、Unity 3D、Unreal ...... 等等著名的遊戲引擎來開發『正式一點的遊戲』。
Read More »[Pygame] 下載並執行 Hello World 程式平均絕對誤差(Mean Absolute Error, MAE)是一個非常有名且基礎的評估指標,通常會出現在機器學習入門課的第一堂課、或第 N 堂 —— 這須視乎你的老師怎麼安排教材。不過對我而言,它就像瑪利歐在關卡 1-1 出發後的第一隻蘑菇怪一樣的存在。
Read More »[Machine Learning] MAE 指標介紹與程式實作Symmetric Mean Absolute Percentage Error(SMAPE),中文可以翻譯成『對稱性平均絕對百分比誤差』,是一種經典的『預測值與實際值』的評估指標。
Read More »[Machine Learning] SMAPE 指標介紹與程式實作當我將過去使用 PyQt5 所製作的界面程式改成使用 PySide6 時,發生了如下的錯誤訊息:
Read More »[已解決][PySide] TypeError: 'PySide6.QtGui.QFont.setWeight' called with wrong argument types: PySide6.QtGui.QFont.setWeight(int)無論我們想要製作任何元件,『按鈕元件』想必都是不可獲缺的、是最最基礎的元件種類之一。
Read More »[PySide] 製作一個簡單的按鈕PySide 是 Python 的一個製作圖形化介面(GUI)的套件,不過大家比較有印象的應該都是 PyQt 以及 Tkinter。
Read More »[PySide] 下載安裝Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes (i.e., only nodes themselves may be changed.)
Read More »LeetCode: 24-Swap Nodes in Pairs 解題紀錄You are given an array prices where prices[i] is the price of a given stock on the ith day.
You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.
Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.
Read More »LeetCode: 121-Best Time to Buy and Sell Stock 解題紀錄在使用 Numpy 格式的資料進行條件判斷時,有時我們會接收到以下報錯訊息:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Read More »[已解決][Python] 使用 Numpy 判斷時報錯:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()