我就废话不多说了,直接上代码吧!
#Copyright (c)2017, 东北大学软件学院学生
# All rightsreserved
#文件名...
                    
                 
                                            
                    
                    # 判断三角形类型def triangle(a,b,c):
  if a>0 and b>0 and c>0:
    if a...
                    
                 
                                            
                    
                    可以通过for循环并结合range函数来实现。Python for循环可以遍历任何序列的项目,如一个列表或者一个字符串。python range() ...
                    
                 
                                            
                    
                    代码:import math
a=float(input("请输入三角形的边长a: "))
b=f...
                    
                 
                                            
                    
                    要绘制等边三角形我们需要使用到turtle.fd和turtle.seth函数。Turtle库是Python语言中一个很流行的绘制图像的函数库,它根据一...
                    
                 
                                            
                    
                    杨辉三角杨辉 定义如下:
     1
    / \
    1  1
   / \ / \
   1  2  1
  / \ / \ / \
...