"""
控制帧率的海龟画圆动画_control fps in turtle animation
本程序结合了pygame的时钟功能,这样能控制帧率fps
"""
import turtle
import pygame
screen = turtle.getscreen() # 获取屏幕
turtle.shape('turtle')
turtle.penup()
fps = 60 # 设定帧率
clock = pygame.time.Clock()
如需要查看完整源代码,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)

