劉任昌python,print,input,字串[::-1]

程式碼

#劉任昌的第一個python程式2023/2/20
print("你在跟我哈啦嗎?")  #python輸出比Java簡單太多
a = "你在跟我哈啦,狗吃屎" #python指令結尾不需要;分號
b = '貓抓鼠,師父開撈駛來時' #phthon字串單引雙引號都可
print(a)
print(b)
c = a[1:5:] #取字串a的第1到5(不含),從0開始
print(c)
c = a[::-1]
print(c)
a = input("自己輸入字串:")
print("你輸入:"+a)
print("反過來:"+a[::-1])

心得

Java輸出System.out.println();

留言

  1. https://xdrcfvghyujiok8945656.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  2. https://d11150113.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  3. https://jdoifjopq1264.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  4. https://d11150115.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  5. https://d11150116.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  6. https://d11150118.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  7. https://spencer0309.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  8. https://d11150114.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  9. https://lihtml-css-javascript-java.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  10. https://cindy-javascript.blogspot.com/2023/02/blog-post.html

    回覆刪除
  11. https://d11150112.blogspot.com/2023/02/blog-post.html

    回覆刪除
  12. https://d11150110.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  13. https://html-css-javascript-yaoto.blogspot.com/2023/02/blog-post.html

    回覆刪除
  14. https://html-css-zz-javascript-java.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  15. 作者已經移除這則留言。

    回覆刪除
  16. https://pandora-mo.blogspot.com/2023/02/w3schoolspython.html

    回覆刪除
  17. https://chenjainqi.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  18. https://tgyhjikolujik2554.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  19. https://fongcyf.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  20. https://yaun3415.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  21. https://hhhaann.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  22. https://cpc920508123.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  23. https://alien1213.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  24. https://d11150108.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  25. https://jasperyang.blogspot.com/2023/02/htmlcssjavascriptjava.html

    回覆刪除
  26. https://zongde824.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  27. https://rtytrdtfg.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  28. https://643gjeytfru4312.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  29. https://iuytjhg5261.blogspot.com/2023/02/pythonprintput-1.html

    回覆刪除
  30. https://jjjjjyyy.blogspot.com/2023/02/pythonprintinput-1.html

    回覆刪除
  31. https://hsiehyuche.blogspot.com/2023/02/pythonprintinput.html

    回覆刪除
  32. https://www.blogger.com/blog/post/edit/7946957304410713297/4007930072141155178

    回覆刪除
  33. https://earnest-person.blogspot.com/p/htmlcssjavascripjavapython.html

    回覆刪除
  34. https://www.blogger.com/blog/post/edit/preview/5517180031991798976/454958149988735028

    回覆刪除

張貼留言

這個網誌中的熱門文章

劉任昌對照Python與JavaScript指令

劉任昌Python集合set清單list元組tuple字典dictionary

劉任昌python, input, str, float