2018年7月2日

python2.7之打飞机(文末附素材链接)

摘要: # -*- coding:utf-8 -*- import pygame from plane_sprites import * from sys import exit class PlaneGame(object): def __init__(self): # print('init') self.screen = pygame.display.... 阅读全文

posted @ 2018-07-02 15:32 糖糖大大 阅读(1825) 评论(0) 推荐(0) 编辑

2018年6月30日

python画小猪佩奇

摘要: 试验环境python3,不知python2能不能运行。 代码如下: # -*- coding:utf-8 -*-import turtle as tt.pensize(4) # 设置画笔的大小t.colormode(255) # 设置GBK颜色范围为0-255t.color((255,155,192 阅读全文

posted @ 2018-06-30 16:23 糖糖大大 阅读(470) 评论(0) 推荐(0) 编辑

导航