import  sys 
import pygame
from pygame.locals import *
import time
import math
pygame.init()
screen=pygame.display.set_mode((500,550))
myfont=pygame.font.Font(None,30)
red=(255,0,0)
green=(0,255,0)
blue=(0,0,255)
pygame.display.set_caption("myhaspl")
screen.fill(green)
pygame.display.update()
while True:
    for myevent in pygame.event.get():
        if myevent.type in (QUIT,KEYDOWN):
            sys.exit()
    pygame.draw.line(screen,blue,(10,10),(200,200),6)
    pygame.draw.arc(screen,blue,(100,100,300,300),math.radians(30),math.radians(190),6)
    pygame.display.update()
    time.sleep(10)

python手记(53)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2021-12-20
  • 2022-02-19
  • 2022-02-12
  • 2022-12-23
相关资源
相似解决方案