這個網誌中的熱門文章
劉任昌w3schools學習Java迴圈,int整數,String字串,Character.toString將字碼轉成字元方法(函數)
Java迴圈,字串String /* 劉任昌2022/10/17,w3shools學習,for迴圈loop */ public class Main { public static void main(String[] args) { int i, j, k=10; /*宣告整數integer i,j,k*/ String a="放屁", b="列:"; /*宣告字串a,b且設定初值="放屁"*/ a ="第"; for ( i = 10; i > 0; i--) {/*迴圈一次增加1, i=i+1可用i++執行*/ System.out.print(a+i+b); /*系統System的.out輸出.println列印,line列*/ for ( j = 0; j <= i; j++)/*迴圈內僅有一指令,可以不用{....}*/ System.out.print(j); /*系統System的.out輸出.print列印*/ System.out.println(); /*純粹換line換列*/ } } } 挪威w3schools學習Java(甲骨文Oracle公司維護)截圖 CSS指令 <style>/*CSS註解和Java,JavaScript,定義h1風格,diameter直徑*/ h1{border: red solid 10px; padding: 10px; border-radius: 30px; text-align: center; background-color: blue; color: white;} </style> Java試探統一碼UNICODE /* 劉任昌2022/10/17,w3shools學習,for迴圈loop */ public class Main { public stat...
劉任昌python字典dictionaries
w3schools截圖 w3schools程式碼 #劉任昌 字典 keys:value市場價值最大的公司 a = { 2330: "台積電", 2317: "鴻海", 2454: "聯發科", 2412: "中華電", 6505:"台塑化",2308: "台達電"} print(a) print("迴圈列出字典的所有值") for t in a: print(a[t]) b = a.copy() #字典不能直接assign print(b) a.update({2881:"富邦金控"})#台灣第七大 a.update({2303:"聯電"}) #台灣大八大 for t in a: print(a[t]) a.setdefault(1303,"南亞") a.setdefault(2882,"國泰金") i = 0 for t in a: #python迴圈不使用{...}縮排整齊整齊 i = i + 1 print("台灣第" + str(i) + a[t]) w3schools字典方法列表 Python has a set of built-in methods that you can use on dictionaries. Method Description clear() 移除字典內容Removes all the elements from the dictionary copy() 拷貝Returns a copy of the dictionary fromkeys() Returns a dictionary with the specified keys and value get() 取得鍵Returns the value of the specified key items() Returns a list containing a tuple for each key value pair keys() Returns a lis...
作者已經移除這則留言。
回覆刪除https://takmingd11117123.blogspot.com/2022/12/youtube.html
回覆刪除https://sarahyu-programming.blogspot.com/2022/12/youtube.html
回覆刪除https://takmingyiching.blogspot.com/2022/12/youtube.html
回覆刪除https://sherryd11117110.blogspot.com/2022/12/youtube.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/2128794278855587960/6125300790386390746
回覆刪除https://gracetakming.blogspot.com/2022/12/youtube.html
回覆刪除https://elainehaung0812.blogspot.com/2022/12/youtube.html
回覆刪除https://youningningjava.blogspot.com/2022/12/youtube.html
回覆刪除https://11117102.blogspot.com/2022/12/youtube.html
回覆刪除https://sususu0123.blogspot.com/2022/12/yt.html
回覆刪除https://java-css-javascript-html.blogspot.com/2022/12/youtube.html
回覆刪除https://d11117235catian.blogspot.com/2022/12/youtube.html
回覆刪除https://hosidesu.blogspot.com/2022/12/youtube.html
回覆刪除https://cathyleerou.blogspot.com/2022/12/youtube-video-player.html
回覆刪除https://gary20010101.blogspot.com/2022/12/youtube.html
回覆刪除https://leitrezesig.blogspot.com/2022/12/youtube.html
回覆刪除https://d10817156.blogspot.com/2022/12/blog-post.html
回覆刪除