python编程三角形数字图案 pycharm怎么用条件语句计算三角形面积?

pycharm怎么用条件语句计算三角形面积?#输入的角度需要用弧度它表示importmathheightfloat(input(请键入height:))anglefloat(input(请输入输入an

pycharm怎么用条件语句计算三角形面积?

#输入的角度需要用弧度它表示

importmath

heightfloat(input(请键入height:))

anglefloat(input(请输入输入angle:))

length(a/180*math.pi)

print(length)

在python中用while语句打印出倒三角形?

#可以打印身体倾斜的正三角形hangint(input(请键入行数:))y1whiley0:print(*,end)x-1print()y1print(图形打印成功!)