#劉任昌strings可以用單引雙引只要對稱 b = '狗吃屎,兔吃菜,貓抓鼠,劉任昌很帥' # 0 1 23 4 5 678 9 10,11,12, print('字串長度' + str(len(b))) #len函數 字串長度 輸出 整數 #str函數 轉成字串 這樣才能串接 print(b[-5:-2]) #練習字串格式format quantity = "精華下午茶" itemno = 5 price = "劉任昌" myorder = "我要吃 {} 吃幾個 {},和 {} 誰一起吃" print(myorder.format(quantity, itemno, price))
作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://chenjainqi.blogspot.com/2023/01/htmlcssjava.html
回覆刪除https://hhhaann.blogspot.com/2023/01/javajavascriptinputtextbuttongetvalueby.html
回覆刪除有努力,就會有成就感。https://robetliu.blogspot.com/2023/01/javajavascriptinputtextbuttongetvalueby.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/w3schools.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/javamaxvaluemaxvalue.html
回覆刪除https://hhhaann.blogspot.com/2023/01/javaimport-packagescanner.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/javaarray.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/javascriptinput-type.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/visiual-studio-codejava.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/javalengthcharat.html
回覆刪除https://chenjainqi.blogspot.com/2023/01/w3schoolsjava.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/4383998106301997440/8265061844346022456
回覆刪除https://www.blogger.com/blog/post/edit/4907236317311865221/574005792575130700
回覆刪除作者已經移除這則留言。
回覆刪除https://17richprince.blogspot.com/2023/01/w3schooljava.html
回覆刪除https://kento920502.blogspot.com/2023/01/w3schooljava.html
回覆刪除