Javascript在網頁就可以執行不需要開啟Spyder 劉任昌執行 以上程式碼 <STYLE>BUTTON{BORDER:GREEN 5PX SOLID;BORDER-RADIUS:30PX;}</STYLE> <h1>Javascript在網頁就可以執行不需要開啟Spyder</h1> <button onclick="LH()">劉任昌執行</button> <canvas height="400" id="my" style="background: black;" width="1200"></canvas> <script> function LH() { var c = document.getElementById("my"); var cty = c.getContext("2d"); var x = 0; var y = 200; var h = 100; cty.beginPath(); cty.lineWidth = 5; cty.moveTo(x,y); while (x < 1000){ x = x + 1; y = 200 - h * Math.sin(0.2*x); cty.lineTo(x, y); cty.strokeStyle = "yellow"; cty.stroke(); }; } </script>
嵌入影片 pmt = [0,0,0,0] #周偉玲程式設計586設定串列list pmt[0]=float(input('躉繳金額: '))#float函數轉化為實數(浮點數) for nper in range(1,4): pmt[nper] = float(input('第'+str(nper)+'期回收: ')) def npv(rate): y = - pmt[0] for j in range(1,4): y = y + pmt[j]/(1+rate)**j return y a, b, gap, f = 0.0, 1.0, 9.0, 9.0 maxerror = 0.000001 loopNumber = 1 while (gap > maxerror and abs(f) > maxerror and loopNumber maxerror and gap > maxerror): if ( f>0 ): a = c else: b = c gap = b-a; print('周偉玲報酬率: ', c) print('周偉玲淨現值: ', f) print('周偉玲迴圈次數: ', loopNumber) 心得 被使用最多的程式語言JAVASCRIPT因為利用瀏覽器BROWSER就可以執行,利用手機就可以撰寫與執行程式碼CODE。最流行、最容易學習的程式語言是PYTHON利用SPYDER執行,上網利用雲端的解譯COLAB
https://naiyuanzhang1226.blogspot.com/2024/05/python.html
回覆刪除https://su-you-an.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://liu-guang-wei.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://wang-yu-jia-wangyujia.blogspot.com/2024/05/python.html
回覆刪除https://kuoyiting.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://chan-wan-yi.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://zhangxinzi.blogspot.com/2024/05/tkintergulgraphical-user-lnterface.html
回覆刪除https://sandy06252023.blogspot.com/2024/05/tkinterguigraphical-user-lnterface.html
回覆刪除https://wujiaqi1010.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://kitty030994.blogspot.com/2024/05/tkintergulgraphical-user-interface.html
回覆刪除https://hank20050328.blogspot.com/2024/05/python.html
回覆刪除你很優,要將搖搖等人教得和你一樣優,多做事,少說話,向你一樣成為一代偉人。https://hank20050328.blogspot.com/2024/05/python.html
刪除https://linziwei0308.blogspot.com/2024/05/tkinterguigraphical-user-imterface.html
回覆刪除https://caipeishan1223.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://zhen-zhen4869.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://shenzhenxuan.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://ymo0831.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://liu0301.blogspot.com/2024/05/tkinterguigraphical-user-interface.html
回覆刪除https://li1007.blogspot.com/2024/05/from-tkinter-import-tkinter-window-tk.html
回覆刪除https://wuhongbing.blogspot.com/2024/06/tkinterguigraphical-user-interface.html
回覆刪除