#1+100 a = 0 for i in range(0,100): a += (i+1); print (a) n=0 sum=0 # 等腰三角 for i in range(10): for j in range(0, 10 - i): print(end=" ") for k in range(10 - i, 10): print("^", end=" ") print("") # 倒三角 for i in range(10): for j in range(0, i): print(end=" ") for j in range(i, 10): print("^", end=" ") print("") #成绩 a = int (input("请输入您的成绩:")) print(" ") if a >= 90: print("优") elif 85<=a<90: print("良") elif 60<=a<85: print("达") else:print("成绩不达标 请参加下次考试")