劉任昌python, input, str, float

from math import *
def f(r): 
  print(f"賴清德輸入的半徑{r} ")
  print(f"圓面積: {pi*r*r} ")
  print(f"球體積:  {pi*r*r*r*4/3}")
  print(f"球表面積:{pi*r*r*4}")
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 g(z):
    print(f"正弦sin {sin(z)}")
    print(f"餘弦cos {cos(z)}")
def group(r, t):
  abc(r)
  tri(t)
  f(r)
  g(t)
r = float(input("輸入半徑: "))
y = float(input("輸入角度360度單位: "))
t = y/180*pi    #將360較度轉成弧度180=pi
group(r,t)

267

268

留言

  1. https://youningningjava.blogspot.com/2023/05/python-input-str-float.html

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

    回覆刪除
  3. https://lilyhuangyuanntakming.blogspot.com/2023/05/blog-post.html

    回覆刪除
  4. https://sarahyu-programming.blogspot.com/2023/05/python-input-str-float2.html

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

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

    回覆刪除
  7. https://h45l1.blogspot.com/2023/05/blog-post.html

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

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

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

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

    回覆刪除
    回覆
    1. 522截圖重點,才可以看得更清楚

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

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

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

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

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

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

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

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

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

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

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

    回覆刪除
  23. https://13earjava.blogspot.com/2023/05/python-input-str-float-5-21-2023.html

    回覆刪除
  24. https://michael-d11117126.blogspot.com/2023/05/python-input-str-float.html

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

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

    回覆刪除
  27. https://shanan-00.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  28. https://ling-cls.blogspot.com/2023/05/python-input-str-float.html

    回覆刪除
  29. https://purplefish-ouo.blogspot.com/2023/05/python-input-str-float.html

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

    回覆刪除
  31. https://erichtml-css-javascript-java.blogspot.com/2023/05/blog-post_22.html

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

    回覆刪除
  33. https://guixiu1485.blogspot.com/2023/05/blog-post.html

    回覆刪除
  34. https://danny1219.blogspot.com/2023/05/blog-post.html

    回覆刪除
  35. https://michael-hou.blogspot.com/2023/05/python-input-str-float.html

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

    回覆刪除
  37. https://takmingg.blogspot.com/2023/05/blog-post.html

    回覆刪除
  38. https://d11117331.blogspot.com/2023/05/blog-post_22.html

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

    回覆刪除
  40. https://www.blogger.com/blog/posts/312728921158661050

    回覆刪除
  41. https://howard930621.blogspot.com/2023/05/blog-post_22.html

    回覆刪除
  42. https://howard930621.blogspot.com/2023/05/blog-post_69.html

    回覆刪除
  43. https://chen-yu-hsi.blogspot.com/2023/05/python-input-str-float.html

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

    回覆刪除
  45. https://gary20010101.blogspot.com/2023/05/blog-post.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

劉任昌Bro Code貪吃蛇python snake game

劉任昌HTML金一乙

劉任昌tkinter視窗函式庫Entry工具widget