劉任昌python, input, str, float

VS code編輯環境截圖

VS code程式碼

from math import *
def abc(r): 
  print("劉任昌輸入的半徑 " + str(r))
  print("圓面積:  "+str(pi*r*r))
  print("圓周長:  "+str(pi*r*2))
  print("球體積:  "+str(pi*r*r*r*4/3))
  print("球表面積:"+str(pi*r*r*4))
def tri(z):
  print("劉任昌輸入的度 " + str(y))
  print("正弦sin "+str(sin(z)))
  print("餘弦cos "+str(cos(z)))
def group(r, t):
  abc(r)
  tri(t)
r = float(input("輸入半徑: "))
y = float(input("輸入角度360度單位: "))
t = y/180*pi
group(r,t)

說明影片

留言

  1. https://liiuzhewei.blogspot.com/2023/05/pythoninput.html

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

    回覆刪除
  3. https://hhhaann.blogspot.com/2023/05/htmlcssjavascriptjava.html

    回覆刪除
  4. https://jasperyang.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  5. https://www.blogger.com/blog/post/edit/preview/1798542341945352529/4282240131854549023

    回覆刪除
  6. https://spencer0309.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  7. https://cpc920508123.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  8. https://xdrcfvghyujiok8945656.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  9. https://rtytrdtfg.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  10. https://html-css-javascript-yaoto.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  11. https://cindy-javascript.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  12. https://iuytjhg5261.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  13. https://chenyouzheng0329.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  14. https://643gjeytfru4312.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  15. https://d11150108.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  16. https://trequiem.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  17. https://d11150110.blogspot.com/2023/05/python-input-str-float.html




    回覆刪除
  18. https://d11150115.blogspot.com/2023/05/youtube-video-player.html

    回覆刪除
  19. https://d11150116.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  20. https://d11150114.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  21. https://sarahyu-programming.blogspot.com/2023/05/522.html

    回覆刪除
  22. https://zhanziyid11117129.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  23. https://nabibi101492.blogspot.com/2023/05/python-input-str-float2.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

劉任昌對照Python與JavaScript指令

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