程式碼 print(int(10)) print(int("ff",16)) print(int('100',16)) print(int('100',8)) a = [0>1, 2>1, 3==3]#串列list使用square bracket中括號 print("是否all全真",all(a)) print("存在任何any一個真",any(a)) print("沈甄軒bin二進位輸出一到9") for i in range(10): #0 to 9進位1 print(bin(i)) for i in range(0, 200, 10): print(hex(i)) a = ('蘋果', '香蕉', '櫻桃',"durian") b = "Hello World" c = 33 d ={'蘋果', '香蕉', '櫻桃',"durian"} e=['蘋果', '香蕉', '櫻桃',"durian"] print("a元組typle", type(a)) print("b字串", type(b)) print("c整數integer", type(c)) print(type(d), type(e)) w3school vs code截圖 w3school內建函數列表 Python has a set of built-in functions. Function Description abs() Returns the absolute value of a number all() Returns True if all items in an iterable object are true any() Returns True if any item in an iterable object is true a...
影片328 維基百科 VS Code Visual Studio Code(簡稱 VS Code)是一款由微軟開發且跨平台的免費原始碼編輯器[7]。該軟體以擴充元件的方式支援語法突顯、程式碼自動補全(又稱 IntelliSense)、程式碼重構功能,並且內建了命令列工具和 Git 版本控制系統[8]。使用者可以更改佈景主題和鍵盤捷徑實現個人化設定,也可以透過內建的擴充元件程式商店安裝其他擴充元件以加強軟體功能。 VS Code 使用 Monaco Editor 作為其底層的程式碼編輯器。[9] Visual Studio Code 的原始碼以 MIT授權條款在 GitHub 上釋出[5],而可執行檔使用了專門的授權條款[6]。 微軟在2015年4月29日舉辦的 Build 2015大會上公布了 Visual Studio Code 的開發計劃;同日,其預覽版本釋出[10]。2015年11月18日,Visual Studio Code 在 GitHub 上開源,同時宣佈將支援擴展功能[11]。2016年4月14日,Visual Studio Code 正式版發佈[12]。 在2019年的 Stack Overflow 組織的開發者調查中,Visual Studio Code 被認為是最受開發者歡迎的開發環境。據調查,87317名受訪者中有50.7%的受訪者聲稱正在使用 Visual Studio Code[13]。
留言
張貼留言