您的位置:首页 > 编程语言 > Python开发

python手记(53)

2016-01-04 15:42 549 查看
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)




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: