劉任昌python,print,input,字串方法[::-1]
w3schools
微軟Visiual Studio Code編寫python程式
微軟Visiual Studio Code編寫python程式碼
#註解:劉任昌2023/2/20 w3schools.com
print("在Dcard出征劉任昌")
a = "聽說他給女生的分數較高"
print(a)
b = a[2:9:] #方法取字串a第3到第8字元
print(b)
c = a[2:9:2]
print(c)
d = a[9:2:-1]
print(d)
a = input("輸入字串: ")
print("原來字串: "+a)
b = a[::-1]
print("反向字串: "+b)
https://sarahyu-programming.blogspot.com/2023/02/blog-post.html
回覆刪除https://lilyhuangyuanntakming.blogspot.com/2023/02/pythonprintinput1.html
回覆刪除https://java-css-javascript-html.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://xiao920727.blogspot.com/2023/02/pythonprintinput.html
回覆刪除https://hosidesu.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://ericlian-pc.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://sophie0930307.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/3759402902509513453/2248506423337281976
回覆刪除https://sususu0123.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://takmingd11117123.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://sherryd11117110.blogspot.com/2023/02/python2023220.html
回覆刪除https://d11117235catian.blogspot.com/2023/02/python.html
回覆刪除https://gracetakming.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://youningningjava.blogspot.com/2023/02/pythonprintinput.html
回覆刪除https://elainehaung0812.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://takmingyiching.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除https://13earjava.blogspot.com/2023/02/pythonprintinput-1.html
回覆刪除作者已經移除這則留言。
回覆刪除