11.14Python

import time

print(time.localtime())
#time.struct_time(tm_year=2023, tm_mon=11, tm_mday=14, tm_hour=14, tm_min=38, tm_sec=7, tm_wday=1, tm_yday=318, tm_isdst=0)

print(time.strftime("%Y-%m-%d %H:%M:%S"))
#2023-11-14 14:33:37

time.sleep(x)
#x秒后继续运行下面代码

import time
import turtle

# print(time.localtime())
# print(time.localtime(500))
# print(type(time.localtime()))
# print(time.strftime("%Y-%m-%d %H:%M:%S"))

turtle.setup(960, 600)  # 画布
turtle.bgpic('猫头鹰.gif')
turtle.fillcolor('#FFFF00')
turtle.title("猫头鹰")
turtle.pensize(5)  # 笔粗细
turtle.speed(5)  # 笔移动速度
turtle.color("#7c443c", '#FFFF00')  # 笔颜色

turtle.begin_fill()  # 从这里开始↓
turtle.circle(50, 360, 5)
turtle.end_fill()  # 到这里内操作的代码填充
turtle.penup()  # 提笔

turtle.forward(150)
turtle.color("#7c443c", '#000000')
turtle.pendown()  # 落笔
turtle.begin_fill()  # 从这里开始↓
turtle.circle(50, 360, 6)
turtle.end_fill()  # 到这里内操作的代码填充
turtle.penup()  # 提笔

turtle.forward(150)
turtle.color("#7c443c", '#b465ac')
turtle.pendown()  # 落笔
turtle.begin_fill()  # 从这里开始↓
turtle.circle(50, 360)  # 圆(半径,角度,边)
turtle.end_fill()  # 到这里内操作的代码填充
turtle.penup()  # 提笔

turtle.backward(450)
turtle.color("#7c443c", '#ff5555')
turtle.pendown()  # 落笔
turtle.begin_fill()  # 从这里开始↓
turtle.circle(50, 360,4)  # 圆(半径,角度,边)
turtle.end_fill()  # 到这里内操作的代码填充
turtle.penup()  # 提笔

turtle.backward(150)
turtle.color("#7c443c", '#f00000')
turtle.pendown()  # 落笔
turtle.begin_fill()  # 从这里开始↓
turtle.circle(50, 360,3)  # 圆(半径,角度,边)
turtle.end_fill()  # 到这里内操作的代码填充
turtle.penup()  # 提笔

input()