Commit 55bceeb2 by BellCodeEditor

auto save

parent c2f1308f
Showing with 37 additions and 2 deletions
n=int(input("请输入总秒数"))
a=n//3600
b=n//60-a*60
c=n%60
print(a,b,c)
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
import turtle
turtle.shape("turtle")
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
for i in range(4):
turtle.forward(200)
turtle.right(90)
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.penup()
turtle.goto(-40,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.penup()
turtle.goto(40,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.hideturtle()
turtle.done()
\ No newline at end of file
"""
计算长方形的面积
并输出结果
"""
a=6#长方形的长
b=3#形长方的宽
s=a*b#面积
print("长方形的面积",s)#面积
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