Commit 8d8c1312 by BellCodeEditor

auto save

parent facbffdd
import turtle
pen=turtle.Pen()
pen.goto(0,0)
pen.left(90)
pen.fillcolor("yellow")
pen.begin_fill()
pen.forward(180)
pen.right(90)
pen.forward(180)
pen.goto(0,0)
pen.end_fill()
pen.fillcolor("red")
pen.begin_fill()
pen.forward(180)
pen.left(90)
pen.forward(180)
pen.goto(0,0)
pen.end_fill()
pen.hideturtle()
turtle.done()
print(int(6.9))
\ No newline at end of file
try:
a=int(input("请输入整数"))
except:
print("要输入整数啊")
else:
if a<18:
print("不可以喝酒哦")
print("程序结束")
\ No newline at end of file
a=b=c=0
time=input("请输入秒数:")
time1=int(time)
a=time1//3600
b=time1%3600//60
c=time1%60
print(a,"小时,",b,"分钟,",c,"秒")
import turtle
import turtle
pen=turtle.Pen()
pen.goto(0,0)
pen.left(90)
pen.fillcolor("yellow")
pen.begin_fill()
pen.forward(180)
pen.right(90)
pen.forward(180)
pen.goto(0,0)
pen.end_fill()
pen.fillcolor("red")
pen.begin_fill()
pen.forward(180)
pen.left(90)
pen.forward(180)
pen.goto(0,0)
pen.end_fill()
pen.hideturtle()
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