问题 #!/usr/bin/python # -*- coding: utf-8 -*- import pygame import sys import datetime import time class TextPicture(pygame.sprite.Sprite): def __init__(self, speed, location): pygame.sprite.Sprite.__init__(self) now = datetime.datetime.now() text = now.strftime("%H:%M:%S") font = pygame.font.Font(None, 40) time_text = font.render(text, 1, [0, 0, 0]) # show now time self.image = time_text self.speed = speed self.rect = self.image.get_rect() self.rect.left, self.rect.top = location def move(self):