陳姵蓁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)

說明影片

留言

這個網誌中的熱門文章

陳姵蓁產業分析作業:期貨業務員2024

風險管理期中考試作業:風險管理制度與實務18屆考題

陳姵蓁visual studio code撰寫Java程式