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)
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
PythonPython
-
Python 手记 - 8
面向对象扩展1、isinstance(obj, cls), issubclass(sub, super)示例 class A(object): def a(self): &
单例模式 反射 Python异常 socket编程