Commit 50ef26fb by BellCodeEditor

auto save

parent 4c450c45
Showing with 148 additions and 17 deletions
def new_input():
total = [] #yyy=0
while True: #x =20
unit= input("请输入:") #n=input("请输入奶牛的数量")
if unit== 'q': #yyy=int(n)*20*7
break #print(n+"头可以生产"+str(yyy)+"千克牛奶量")
else: ''''
try: c=input("输入总秒数")
unit=int(unit) a=int(c)//3600
except: b=int(c)-a*3600
print("输入错误") b=b//60
else: c=int(c)-a*3600-b*60
total.append(unit) print(a,b,c)
print("_"*30) '''
return total '''
r=new_input() a=6 #长方形肠为6
print(r) b=3 #长方形宽为3
s=a*b #长方形的面积为长*宽
print("长方形的面积为:"+str(s))
'''
'''
import turtle
a=turtle.Pen()
a.fillcolor("yellow")
a.pencolor("black")
a.begin_fill()
a.forward(180)
a.left(90)
a.forward(180)
a.goto(0,0)
a.end_fill()
a.fillcolor("red")
a.begin_fill()
a.forward(180)
a.left(-90)
a.forward(180)
a.end_fill()
turtle.done()
'''
'''
import turtle
a=turtle.Pen()
a.circle(100)
a.left(90)
a.forward(200)
a.left(180)
a.forward(100)
a.left(90)
a.forward(100)
a.left(180)
a.forward(200)
turtle.done()
'''
'''
import turtle
a=turtle.Pen()
a.forward(180)
a.left(90)
a.forward(180)
a.left(90)
a.forward(180)
a.left(90)
a.forward(180)
a.left(90)
a.penup()
a.goto(90,45)
a.pendown()
a.fillcolor("blue")
a.begin_fill()
a.circle(50)
a.end_fill()
turtle.done()
'''
'''
import turtle
a=turtle.Pen()
a.forward(180)
a.left(90)
a.forward(180)
a.left(90)
a.forward(180)
a.left(90)
a.forward(180)
a.left(90)
turtle.done()
'''
'''
try:
age = int(input('你今年几岁了?'))
except:
print('要输入整数啊')
else:
if age < 18:
print('不可以喝酒奥')
print('程序结束~~')
'''
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