invalidate是主線程方法,只能在主線程使用。而postInvalidate就沒有這個限制。非主線程使用invalidate,報錯android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its
Grading 六次quiz選成績最好的三次算60分,加上考試40分,每次quiz都做並且總分50分以上可以得到含分數的認證,不到50分也能拿到認證。 Week 1 Take care of your competitor 以遊戲的形式對競爭情境進行分析,以兩個牙膏製造商的例子開始,使用了是否做廣告的矩陣。 這樣可以引入兩個博弈論中非常重要的概念:Nash Equilibria納什均衡和Prisoners’ Dilemma囚徒困境。我們會明白參與對手的行動是非常重要的。 下一步,
如果工程引入了android-support-v4的jar類庫,那麼在工程打包混淆時,就會出現報錯提示。例如提示你:You may need to specify additional library jars (using '-libraryjars')。打包出錯:情況一: "類1 can't find referenced class 類2" 字面上的意思就是類1找不到類2的引用;它會建議你:"You may need to specify additional library jars (
Algorithms: Design and Analysis, Part 1 Download the text file here. (Right click and save link as)The file contains the adjacency list representation of a simple undirected graph. There are 200 vertices labeled 1 to 200. The first column in the
Coding the Matrix: Linear Algebra through Computer Science Applications 這次作業難度不小,第一個作業hw1還好,第二個全部都可以使用comprehension完成,但要小心傳回值,還有深入理解本課程中的vector的概念。第三個作業難度不大,但一不小心就做錯了,一個原因是grader不夠智能,另一個原因就是細節問題了,比如某個函數的參數必須是set而不能是list。 這次作業總共花了大約7個小時,Making me
Coding the Matrix: Linear Algebra through Computer Science Applications 本次作業分成三部分,第一部分點擊開啟連結 已經記錄過,後兩部分也早已完成,趁有時間記下來。 hw0 比較簡單,如果有問題在論壇都可以找到答案。不過要注意使用python3運行。不過沒有想到python裡面也支援j作為虛數單位。# Please fill out this stencil and submit using the provided