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://www.blogger.com/blog/post/edit/preview/7449986463321468050/5801911341175482651
回覆刪除https://liu-guang-wei.blogspot.com/2024/05/blog-post_16.html
回覆刪除https://stanley-ouo.blogspot.com/2024/05/from-tkinter-import-tkinterwindow001.html
回覆刪除作者已經移除這則留言。
回覆刪除https://kuoyiting.blogspot.com/2024/05/from-tkinter-import-tkinterwindow001.html
回覆刪除https://caipeishan1223.blogspot.com/2024/05/blog-post_16.html
回覆刪除作者已經移除這則留言。
回覆刪除https://naiyuanzhang1226.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://hank20050328.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://0209tongting.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://laiweikaiaaa.blogspot.com/2024/05/from-tkinter-import-tkinterwindow001.html
回覆刪除https://jhuang-huei.blogspot.com/2024/05/pythontoplevel.html
回覆刪除https://su-you-an.blogspot.com/2024/05/from-tkinter-import-tkinterwindow001.html
回覆刪除https://shirong046.blogspot.com/2024/05/from-tkinter-import-tkinterwindow001.html
回覆刪除https://zhen-zhen4869.blogspot.com/2024/05/blog-post_16.html
回覆刪除https://wujiaqi1010.blogspot.com/2024/05/blog-post.html
回覆刪除https://kitty030994.blogspot.com/2024/05/pythontkinter.html
回覆刪除https://sandy06252023.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://chan-wan-yi.blogspot.com/2024/05/blog-post_16.html
回覆刪除https://a0909922280.blogspot.com/2024/05/blog-post.html
回覆刪除https://wang-yu-jia-wangyujia.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://liu0301.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://lukelu0928.blogspot.com/2024/05/pythontkinter.html
回覆刪除https://chienyinghuan.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://linziwei0308.blogspot.com/2024/05/from-tkinter-import-tkinterwindow001.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/4616311045112546689/4296547727957109424
回覆刪除https://li1007.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://zzl1102.blogspot.com/2024/05/pythontopleveltk.html
回覆刪除https://wuhongbing.blogspot.com/2024/06/pythontopleveltk.html
回覆刪除