首页 > 编程语言 > 详细

python手记(53)

时间:2016-01-04 18:15:16      阅读:198      评论:0      收藏:0      [点我收藏+]
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)

原文:http://blog.csdn.net/myhaspl/article/details/50456410

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!