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://lin-yujing.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://sincewayne.blogspot.com/2025/03/202534python-array.html
回覆刪除https://www.w3schools.com/python/trypython.asp?filename=demo_default
回覆刪除https://chenyenhsun.blogspot.com/2025/03/pythonarraylist.html
回覆刪除https://gbsddik.blogspot.com/2025/03/python.html
回覆刪除https://mumeng-ru.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://huutingyu.blogspot.com/2025/03/h1background-colorpurplecolorwhitepaddi.html
回覆刪除https://draft.blogger.com/blog/post/edit/4336680755326581508/5015279057378528774
回覆刪除https://chiuerya0515.blogspot.com/2025/03/34.html
回覆刪除https://xu-bing-wei-0804.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://zyixnn.blogspot.com/2025/03/34.html
回覆刪除https://takuto20050803.blogspot.com/2025/03/python-array.html
回覆刪除https://jiachiangkuo.blogspot.com/2025/03/34.html
回覆刪除https://xu-bing-wei-0804.blogspot.com/2025/03/animal-pythoncomments-x-animal_3.html
回覆刪除https://zhang-1108.blogspot.com/2025/03/34.html
回覆刪除https://chinenkohana.blogspot.com/2025/03/blog-post.html
回覆刪除https://yimignsocool.blogspot.com/2025/03/blog-post.html
回覆刪除https://huuiiiiman.blogspot.com/2025/03/202534python-array.html
回覆刪除https://slu804387.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://yuweiiiiiiiiiiii.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://vovo8564513.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://christina-lqw.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://takming123.blogspot.com/2025/03/202534python-array.html
回覆刪除https://zyixnn.blogspot.com/2025/03/h1background-colorpinkcolorwhitepadding.html
回覆刪除https://zhuo-1005.blogspot.com/2025/03/blog-post.html
回覆刪除https://lu-cheng-yin-2024.blogspot.com/2025/03/34.html
回覆刪除https://pei940922.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://xuan-ang.blogspot.com/2025/03/python-array.htm
回覆刪除https://chan0528.blogspot.com/2025/03/animal-pythoncomments-x-animal.html
回覆刪除https://sccabout.blogspot.com/2025/03/202534python-array.html
回覆刪除作者已經移除這則留言。
回覆刪除https://d11117315111.blogspot.com/2025/03/202534python-array.html
回覆刪除https://yangyoyo0125.blogspot.com/2025/04/202534python-array.html
回覆刪除https://d11117242.blogspot.com/2025/04/htmlcssjavascriptjavapython.html
回覆刪除