Commit b8025b60 by BellCodeEditor

auto save

parent bc51f4ac
Showing with 95 additions and 1 deletions
# 利用write()帮助悟空给诺依回信吧~
#输出
#print("hello,world!")
#输入+输出
#input_food=input("请输入")
#print("是"+input_food+str(type(input_food)))
#连续赋值相同的值
#a=b=c=1
#print(a)
#print(b)
#print(c)
#连续赋值不同的值
#a,b,c=1,2,3
#print(a)
#print(b)
#print(c)
#注释方法
#哈哈哈哈哈哈
"""
哈哈哈
哈哈哈
"""
#加运算
#x=10
#y=20
#print("x+y="+ x+y)
#减运算
#x=10
#y=20
#print("x-y="+ x-y)
#乘运算
#x=10
#y=20
#print("x*y="+ x*y)
#除运算
#x=10
#y=20
#print("x/y="+ x/y)
#乘方运算
#x=10
#y=20
#print("x**y="+ x**y)
#取整除运算
#x=10
#y=20
#print("x//y="+ x//y)
#取余运算
#x=10
#y=20
#print("x%y="+ x%y)
#询问三角形的底,高,求三角形面积。
#a=input("三角形的底为:")
#h=input("三角形的高为:")
#print("三角形的面积为",float(a)*float(h)/2)
#询问半径,计算圆形周长
#pai=3.14
#r=input("圆的半径为:")
#print("圆的周长为",float(r)*pai*2)
#询问半径,计算圆形周长
#pai=3.14
#r=input("圆的半径为:")
#print("圆的面积为",float(r)**2*pai)
#询问底,高,求梯形的面积
#a=input("梯形的上底为:")
#b=input("梯形的下底为:")
#h=input("梯形的高为:")
#print("梯形的面积为:",(float(a)+float(b))*float(h)/2)
#太阳花
#import turtle
#turtle.pendown()
#turtle.speed(15)
#turtle.begin_fill()
#for i in range(36):
# turtle.forward(200)
# turtle.left(170)
#turtle.fillcolor("red")
#turtle.hideturtle()
#turtle.end_fill()
#turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment