劉任昌對照Python與JavaScript指令
比較Python與JavaScript指令 for x in range(20): #x整數, str方法 a = "" #python用縮排取代{ }當作區段 for y in range(x): a += str(y) print("第" + str(x) +"列:" + a) # Java, C靜態變數,必須先宣告變數 # Python, JavaScript允許動態變數,可以不用先宣告 Javascript程式碼:不執行,看程式碼,必須在撰寫模式貼上 <h1>HTML與JavaScript</h1> <div id="show"></div> <script> var a = "劉任昌會Python與JavaScript<br>"; for (var x=0; x<10; x++) { /*JavaScript註解Python縮排分區段,{}*/ a +="第" + x +"列:" for (var y=0; y < x; y++) a += y; a += "<br>"; } document.getElementById("show").innerHTML = a; </script> HTML與JavaScript
https://d11150115.blogspot.com/2022/11/blog-post_24.html
回覆刪除https://xdrcfvghyujiok8945656.blogspot.com/2022/11/javascriptinput-type.html
回覆刪除https://643gjeytfru4312.blogspot.com/2022/11/input-buttonjavascriptinnerhtml.html
回覆刪除https://d11150113.blogspot.com/2022/11/input-buttonjavascriptinnerhtml.html
回覆刪除https://jdoifjopq1264.blogspot.com/2022/11/w3schoolscomjavascript-output.html
回覆刪除https://rtytrdtfg.blogspot.com/2022/11/w3schoolscomjavascript-output.html
回覆刪除https://cindy-javascript.blogspot.com/2022/11/input-buttonjavascriptinnerhtml.html
回覆刪除https://iuytjhg5261.blogspot.com/2022/11/blog-post_24.html
回覆刪除https://tgyhjikolujik2554.blogspot.com/2022/11/input-buttongetelementbyidinnerhtml.html
回覆刪除https://d11150112.blogspot.com/2022/11/input-buttonjavascriptinnerhtml.html
回覆刪除https://kingthegreatliu.blogspot.com/2022/11/input-buttonjavascriptinnerhtml.html
回覆刪除https://www.w3schools.com/js/tryit.asp?filename=tryjs_default
回覆刪除https://rtytrdtfg.blogspot.com/2022/12/blog-post.html
回覆刪除https://youtu.be/TLkvUHEogwk
回覆刪除